void (PsiElement a, String b) { class B implements LocalQuickFix { B(PsiElement aa) { } private void a(PsiElement a1, String b1) { System.out.println(<warning descr="Potential memory leak: don't hold PsiElement, use SmartPsiElementPointer instead. See also LocalQuickFixOnPsiElement.">a</warning>); System.out.println(b); System.out.println(a1); System.out.println(b1); } }; B b1 = new B(a) {}; }