PsiElement (Editor editor, int flags, @Nullable PsiElement element, @Nullable PsiElement contextElement) { if (element instanceof PsiAnonymousClass) { return ((PsiAnonymousClass)element).getBaseClassType().resolve(); } return element; }