String () { final StringBuilder myToolTip = new StringBuilder(); String scope = myArtifactNode.getOriginalScope(); if (StringUtil.isNotEmpty(scope) && !MavenConstants.SCOPE_COMPILE.equals(scope)) { myToolTip.append(scope).append(" "); } if (myArtifactNode.getState() == MavenArtifactState.CONFLICT) { myToolTip.append("omitted for conflict"); if (myArtifactNode.getRelatedArtifact() != null) { myToolTip.append(" with ").append(myArtifactNode.getRelatedArtifact().getVersion()); } } if (myArtifactNode.getState() == MavenArtifactState.DUPLICATE) { myToolTip.append("omitted for duplicate"); } return myToolTip.toString().trim(); }