public void writeGrouped(Map<String, Set<Artifact>> missingGrouped, boolean resolveReference, boolean printOnlyMoreThanOne, String onlyReferencedFromPath, int minNumVersionsRef) {
        for (Map.Entry<String, Set<Artifact>> artifactEntrys : missingGrouped.entrySet()) {
            Set<Artifact> artifacts = artifactEntrys.getValue();
            if (onlyReferencedFromPath == null || minNumVersionsRef == 0 || isReferencedFromPath(artifacts, onlyReferencedFromPath, minNumVersionsRef)) {
                int size = artifacts.size();
                if (!printOnlyMoreThanOne || size > 1) {
                    System.out.println("");
                    if (size > 1) {
                        out.print("*");
                    }
                    out.print("[" + size + "]" + artifactEntrys.getKey());
                    out.println("");
                    for (Artifact artifact : artifacts) {
                        out.print("  ");
                        out.print(artifact);
                        if (resolveReference) {
                            out.print("  ref(" + artifact.getReferences().size() + "):" + getReferencesPom(artifact));
                        }
                        out.println("");
                    }
                }
            }
        }
    }