void () { MavenArchetype selectedArch = getSelectedArchetype(); if (selectedArch == null) { selectedArch = myBuilder.getArchetype(); } if (selectedArch != null) myUseArchetypeCheckBox.setSelected(true); if (myArchetypesTree.getRowCount() == 0) updateArchetypesList(selectedArch); }