boolean (final PsiElement[] elements, @Nullable final PsiElement targetContainer, @Nullable PsiReference reference) { if (elements.length != 1) return false; PsiElement element = elements [0]; if (!(element instanceof PsiMethod method)) return false; if (element instanceof SyntheticElement) return false; if (method.isConstructor()) return false; if (method.hasModifierProperty(PsiModifier.STATIC)) return false; return targetContainer == null || super.canMove(elements, targetContainer, reference); }