void () { configure(); PsiFile file = myFixture.addFileToProject("a.java", "interface Foo { void foo(); }" + "interface Foo { void bar(); } "); PsiClass[] fooClasses = ((PsiJavaFile)file).getClasses(); assertOneElement(FunctionalExpressionSearch.search(fooClasses[0]).findAll()); assertOneElement(FunctionalExpressionSearch.search(fooClasses[1]).findAll()); }