public static boolean hasMovableElementType(@NotNull PsiElement element) {
    return element instanceof PyClass || element instanceof PyFunction || element instanceof PyTargetExpression;
  }
public static boolean hasMovableElementType(@NotNull PsiElement element)