public static boolean hasMainMethodInHierarchy(@NotNull JvmClass clazz) {
    if (!canBeMainClass(clazz)) return false;
    return findMainMethodInHierarchy(clazz) != null;
  }
public static boolean hasMainMethodInHierarchy(@NotNull JvmClass clazz)