void (final @NotNull Project project, final @NotNull ProjectSystemId externalSystemId, final @NotNull String externalProjectPath, final boolean isPreviewMode, final @NotNull ProgressExecutionMode progressExecutionMode) { var builder = new ImportSpecBuilder(project, externalSystemId) .use(progressExecutionMode); if (isPreviewMode) builder.usePreviewMode(); refreshProject(externalProjectPath, builder); }