void () { @Language("JAVA") @SuppressWarnings("ALL") String fileText = "class C {\n" + " static void a(){}\n" + " {a<caret>();}" + "}"; PsiFile file = myFixture.addFileToProject("Foo.java", fileText); myFixture.configureFromExistingVirtualFile(file.getVirtualFile()); final PsiElement[] impls = getTargets(file); assertEquals(1, impls.length); }