void () { fileChooser.clear(); for (T element : getContext().getList()) { boolean isEnabled = isElementEnabled(element); fileChooser.addElement(element, isEnabled && getContext().isMarked(element)); if (!isEnabled) { fileChooser.disableElement(element); } } fileChooser.setBorder(IdeBorderFactory.createTitledBorder( JavaUiBundle.message("project.import.select.title", getContext().getName()), false)); openModuleSettingsCheckBox.setSelected(getBuilder().isOpenProjectSettingsAfter()); }