String (MavenDependencyCompletionItem description) { StringBuilder builder = new StringBuilder(description.getGroupId()); if (description.getArtifactId() == null) { builder.append(":..."); } else { builder.append(":").append(description.getArtifactId()); if (description.getPackaging() != null) { builder.append(":").append(description.getPackaging()); } if (description.getVersion() != null) { builder.append(":").append(description.getVersion()); } else { builder.append(":..."); } } return builder.toString(); }