public static boolean isDeclaredAsEntryPoint(@NotNull PsiElement method) {
    return findUnusedDeclarationInspection(method).isEntryPoint(method);
  }
public static boolean isDeclaredAsEntryPoint(@NotNull PsiElement method)