RunnerAndConfigurationSettings (@NotNull RunnerAndConfigurationSettings configuration, boolean isShared, boolean isEditBeforeRun, boolean isActivate, boolean isParallel) { if (isShared) { configuration.storeInDotIdeaFolder(); } else { configuration.storeInLocalWorkspace(); } configuration.setEditBeforeRun(isEditBeforeRun); configuration.setActivateToolWindowBeforeRun(isActivate); configuration.getConfiguration().setAllowRunningInParallel(isParallel); return configuration; }