void (Condition<PsiElement> verifier, String... files) { for (String file : files) { myFixture.configureByFile(file); } final TargetElementUtil targetUtil = TargetElementUtil.getInstance(); final PsiElement target = TargetElementUtil.findTargetElement(myFixture.getEditor(), targetUtil.getReferenceSearchFlags()); assertTrue(verifier.value(target)); }