static boolean shouldHaveBody(@Nullable ASTNode element) {
    if (element == null) {
      return false;
    }
    ASTNode containingClass = BasicJavaAstTreeUtil.getParentOfType(element, CLASS_SET);
    if (containingClass == null) return false;
    if (BasicJavaAstTreeUtil.hasModifierProperty(element, JavaTokenType.ABSTRACT_KEYWORD) ||
        BasicJavaAstTreeUtil.hasModifierProperty(element, JavaTokenType.NATIVE_KEYWORD)) {
      return false;
    }
    if (BasicJavaAstTreeUtil.hasModifierProperty(element, JavaTokenType.PRIVATE_KEYWORD)) return true;
    if (BasicJavaAstTreeUtil.isInterfaceEnumClassOrRecord(containingClass, JavaTokenType.INTERFACE_KEYWORD) &&
        !BasicJavaAstTreeUtil.hasModifierProperty(element, JavaTokenType.DEFAULT_KEYWORD) &&
        !BasicJavaAstTreeUtil.hasModifierProperty(element, JavaTokenType.STATIC_KEYWORD)) {
      return false;
    }
    return true;
  }
static boolean shouldHaveBody(@Nullable ASTNode element)