public static void invokeLater(@Nullable Project project, @NotNull Runnable runnable, ModalityState state) {
    if (project != null) {
      ApplicationManager.getApplication().invokeLater(runnable, state, project.getDisposed());
    }
  }
public static void invokeLater(@Nullable Project project, @NotNull Runnable runnable, ModalityState state)