private static boolean instanceMainMethodsEnabled(@NotNull PsiElement psiElement) {
    return PsiUtil.isAvailable(JavaFeature.INSTANCE_MAIN_METHOD, psiElement);
  }
private static boolean instanceMainMethodsEnabled(@NotNull PsiElement psiElement)