PsiElement (@NotNull DataContext dataContext) { PsiMethod method = getMethodImpl(dataContext); if ( method != null && method.getContainingClass() != null && !method.hasModifierProperty(PsiModifier.PRIVATE) && !method.hasModifierProperty(PsiModifier.STATIC) ){ return method; } else { return null; } }