Maybe by using search template:
class $a$ {
@Inject private Class1 $_1$;
@Inject private Class1 $_2$;
$3$;
}
and search text filters for $_1$ $_2$ and $_3$:
respectively
text=class1
text=class2
text=!@Inject private Class1 class3;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…