protected String getElementText(final String item) {
   StringBuilder stringBuilder = new StringBuilder();
   final String projectName = EclipseProjectFinder.findProjectName(item);
   stringBuilder.append(projectName);
   String relPath =
       PathUtil.getRelative(((EclipseImportBuilder) getBuilder()).getParameters().root, item);
   if (!relPath.equals(".") && !relPath.equals(projectName)) {
     stringBuilder.append(" (").append(relPath).append(")");
   }
   return stringBuilder.toString();
 }
 private void calcDuplicates() {
   if (duplicateNames == null) {
     duplicateNames = new HashSet<String>();
     Set<String> usedNames = new HashSet<String>();
     for (String model : fileChooser.getMarkedElements()) {
       final String projectName = EclipseProjectFinder.findProjectName(model);
       if (!usedNames.add(projectName)) {
         duplicateNames.add(projectName);
       }
     }
   }
 }
 private boolean isInConflict(final String item) {
   calcDuplicates();
   return fileChooser.getMarkedElements().contains(item)
       && duplicateNames.contains(EclipseProjectFinder.findProjectName(item));
 }