void () { myFixture.addClass("public interface I {void m();}"); myFixture.addClass("public class Usage {{I i = () -> {};}}"); PsiFile file = myFixture.addFileToProject("Foo.java", """ public abstract class Hello { void foo(I i) { i.<caret>m(); } } """); myFixture.configureFromExistingVirtualFile(file.getVirtualFile()); final PsiElement[] implementations = ShowImplementationsTestUtil.getImplementations(); assertEquals(2, implementations.length); assertInstanceOf(implementations[1], PsiLambdaExpression.class); }