I'm using ProgressManager.runProcessWithProgressSynchronously in an application-level configuration. As the settings dialog can be invoked without an open project I'm simply passing null instead of a project.
Now after runProcessWithProgressSynchronously being deprecated I would like to replace it with a modal Task. But the project parameter is annotated with @NotNull in the constructor of Task. So then how can I run a task with no open project?