public static boolean hasMainInClass(@NotNull final PsiClass aClass) {
    if (!MAIN_CLASS.value(aClass)) return false;
    return hasMainMethod(aClass);
  }
public static boolean hasMainInClass(@NotNull final PsiClass aClass)