void (final List<JavaModuleSourceRoot> foundPaths, final boolean canceled) { List<JavaModuleSourceRoot> paths = ContainerUtil.notNullize(foundPaths); if (!paths.isEmpty()) { myCurrentMode = CHOOSE_SOURCE_PANEL; mySourcePathsChooser.setElements(paths, true); } else { myCurrentMode = CREATE_SOURCE_PANEL; updateFullPathField(); } updateStepUI(canceled ? null : getContentRootPath()); if (CHOOSE_SOURCE_PANEL.equals(myCurrentMode)) { mySourcePathsChooser.selectElements(paths.subList(0, 1)); } else if (CREATE_SOURCE_PANEL.equals(myCurrentMode)) { myTfSourceDirectoryName.selectAll(); } }