boolean (final PsiElement element, final Project project, final DataContext dataContext, final PsiReference reference, final Editor editor) { if (element instanceof PsiMethod method && !method.hasModifierProperty(PsiModifier.STATIC)) { new MoveInstanceMethodHandler().invoke(project, new PsiElement[]{method}, dataContext); return true; } return false; }