void () { @Language("JAVA") String text = """ interface AFoo{ default boolean a<caret>aa(){} boolean bbb();} class AFooImpl { { AFoo a = () -> {return false;}; } }"""; myFixture.configureByText("a.java", text); PsiMethod psiMethod = (PsiMethod)TargetElementUtil.findTargetElement(myFixture.getEditor(), TargetElementUtil.getInstance().getAllAccepted()); assert psiMethod != null; final Collection<PsiElement> methods = getMethodImplementations(psiMethod); List<PsiElement> all = new ArrayList<>(); all.add(psiMethod); all.addAll(methods); final ImplementationViewComponent component = createImplementationView(all); assertContent(component, new String[]{"AFoo"}); }