void (MavenImportingSettings data, @Nullable Project project) { mySearchRecursivelyCheckBox.setSelected(LookForNestedToggleAction.isSelected()); myWorkspaceImportCheckBox.setSelected(data.isWorkspaceImportEnabled()); mySeparateModulesDirCheckBox.setSelected(!StringUtil.isEmptyOrSpaces(data.getDedicatedModuleDir())); mySeparateModulesDirChooser.setText(data.getDedicatedModuleDir()); myCreateModulesForAggregators.setSelected(data.isCreateModulesForAggregators()); myKeepSourceFoldersCheckBox.setSelected(data.isKeepSourceFolders()); myStoreProjectFilesUnderProjectRoot.setSelected(!isCurrentlyStoredExternally(project)); myExcludeTargetFolderCheckBox.setSelected(data.isExcludeTargetFolder()); myUseMavenOutputCheckBox.setSelected(data.isUseMavenOutput()); myUpdateFoldersOnImportPhaseComboBox.setSelectedItem(data.getUpdateFoldersOnImportPhase()); myGeneratedSourcesComboBox.setSelectedItem(data.getGeneratedSourcesFolder()); myDownloadSourcesCheckBox.setSelected(data.isDownloadSourcesAutomatically()); myDownloadDocsCheckBox.setSelected(data.isDownloadDocsAutomatically()); myDownloadAnnotationsCheckBox.setSelected(data.isDownloadAnnotationsAutomatically()); myAutoDetectCompilerCheckBox.setSelected(data.isAutoDetectCompiler()); myDependencyTypes.setText(data.getDependencyTypes()); myVMOptionsForImporter.setText(data.getVmOptionsForImporter()); skipValidationDuring(() -> myJdkForImporterComboBox.refreshData(data.getJdkForImporter())); updateImportControls(project); updateModuleDirControls(); }