String () { StringBuilder result = new StringBuilder(); result.append(myArtifact.getDisplayStringWithTypeAndClassifier()); if (myState != MavenArtifactState.ADDED) { result.append('[').append(myState).append(':').append(myRelatedArtifact.getDisplayStringWithTypeAndClassifier()).append(']'); } result.append("->("); for (int i = 0; i < myDependencies.size(); i++) { if (i > 0) result.append(','); result.append(myDependencies.get(i)); } result.append(')'); return result.toString(); }