void (@NotNull MavenImportingSettings data) { data.setWorkspaceImportEnabled(myWorkspaceImportCheckBox.isSelected()); data.setLookForNested(mySearchRecursivelyCheckBox.isSelected()); LookForNestedToggleAction.setSelected(mySearchRecursivelyCheckBox.isSelected()); data.setDedicatedModuleDir(mySeparateModulesDirCheckBox.isSelected() ? mySeparateModulesDirChooser.getText() : ""); data.setCreateModulesForAggregators(myCreateModulesForAggregators.isSelected()); data.setKeepSourceFolders(myKeepSourceFoldersCheckBox.isSelected()); data.setExcludeTargetFolder(myExcludeTargetFolderCheckBox.isSelected()); data.setUseMavenOutput(myUseMavenOutputCheckBox.isSelected()); data.setUpdateFoldersOnImportPhase((String)myUpdateFoldersOnImportPhaseComboBox.getSelectedItem()); data.setGeneratedSourcesFolder((MavenImportingSettings.GeneratedSourcesFolder)myGeneratedSourcesComboBox.getSelectedItem()); data.setDownloadSourcesAutomatically(myDownloadSourcesCheckBox.isSelected()); data.setDownloadDocsAutomatically(myDownloadDocsCheckBox.isSelected()); data.setDownloadAnnotationsAutomatically(myDownloadAnnotationsCheckBox.isSelected()); data.setAutoDetectCompiler(myAutoDetectCompilerCheckBox.isSelected()); data.setVmOptionsForImporter(myVMOptionsForImporter.getText()); data.setJdkForImporter(myJdkForImporterComboBox.getSelectedValue()); data.setDependencyTypes(myDependencyTypes.getText()); }