void () { @Language("JAVA") @SuppressWarnings("ALL") String fileText = "interface I {}\n" + "interface Im {\n" + " void m();\n" + "}\n" + "class Im1 implements Im {\n" + " public void m() {}\n" + "}\n" + "class Im2 implements Im {\n" + " public void m() {}\n" + "}\n" + "class JavaClass<T extends K, K extends I & Im> {\n" + " void a(T t){\n" + " t.<caret>m();\n" + " }\n" + "}"; PsiFile file = myFixture.addFileToProject("Foo.java", fileText); myFixture.configureFromExistingVirtualFile(file.getVirtualFile()); PsiElement[] targets = getTargets(file); assertSize(2, targets); }