@Nullable
  public static PsiMethod findMainMethod(final PsiClass aClass) {
    JavaMainMethodProvider mainMethodProvider = getApplicableMainMethodProvider(aClass);
    if (mainMethodProvider != null) {
      return mainMethodProvider.findMainInClass(aClass);
    }

    return findMainMethodInClassOrParent(aClass);
  }
@Nullable
  public static PsiMethod findMainMethod(final PsiClass aClass)