void () { if (myList.getSelectedValue() != null) return; final String id = PropertiesComponent.getInstance().getValue(PREFERRED); if (id == null || myFromSourcesProvider != null && id.equals(myFromSourcesProvider.getId())) { myCreateFromSources.setSelected(true); } else { myImportFrom.setSelected(true); for (ProjectImportProvider provider : myProviders) { if (Comparing.strEqual(provider.getId(), id)) { myList.setSelectedValue(provider, true); break; } } } if (myList.getSelectedValue() == null) { myList.setSelectedIndex(0); } }