JPanel () { final List<VirtualFile> sourceRoots = JavaProjectRootsUtil.getSuitableDestinationSourceRoots(myProject); if (sourceRoots.size() <= 1) return super.createDestinationRootPanel(); final JPanel panel = new JPanel(new BorderLayout()); panel.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0)); final JBLabel label = new JBLabel(RefactoringBundle.message("target.destination.folder")); panel.add(label, BorderLayout.NORTH); label.setLabelFor(myDestinationFolderComboBox); myDestinationFolderComboBox.setData(myProject, myTargetDirectory, ((PackageNameReferenceEditorCombo)myPackageNameField).getChildComponent()); panel.add(myDestinationFolderComboBox, BorderLayout.CENTER); return panel; }