Object (DirectoryProjectGenerator<?> generator, final ProjectSpecificSettingsStep settingsStep, @NotNull final ProjectGeneratorPeer projectGeneratorPeer) { Object projectSettings = null; if (generator instanceof PythonProjectGenerator<?> projectGenerator) { projectSettings = projectGenerator.getProjectSettings(); } else if (generator instanceof WebProjectTemplate) { projectSettings = projectGeneratorPeer.getSettings(); } if (projectSettings instanceof PyNewProjectSettings newProjectSettings) { newProjectSettings.setSdk(settingsStep.getSdk()); newProjectSettings.setInterpreterInfoForStatistics(settingsStep.getInterpreterInfoForStatistics()); newProjectSettings.setInstallFramework(settingsStep.installFramework()); newProjectSettings.setRemotePath(settingsStep.getRemotePath()); } return projectSettings; }