private static void generate(@NotNull Project project) {
    DumbService.getInstance(project).smartInvokeLater(() -> generateWhenSmart(project));
  }
private static void generate(@NotNull Project project)