@Contract("null -> false")
  public static boolean isInitOrNewMethod(@Nullable PsiElement element) {
    final PyAstFunction function = ObjectUtils.tryCast(element, PyAstFunction.class);
    if (function == null) return false;

    final String name = function.getName();
    return (PyNames.INIT.equals(name) || PyNames.NEW.equals(name)) && function.getContainingClass() != null;
  }
@Contract("null -> false")
  public static boolean isInitOrNewMethod(@Nullable PsiElement element)