class CacheFindGarbageCommand
    implements ComputeCommand<CacheFindGarbageCommandArg, FindAndDeleteGarbageInPersistenceTaskResult> {
    /** {@inheritDoc} */
    @Override public String description() {
        return "Find and optionally delete garbage from shared cache groups which could be left after cache destroy";
    }

    /** {@inheritDoc} */
    @Override public Class<CacheFindGarbageCommandArg> argClass() {
        return CacheFindGarbageCommandArg.class;
    }

    /** {@inheritDoc} */
    @Override public Class<FindAndDeleteGarbageInPersistenceTask> taskClass() {
        return FindAndDeleteGarbageInPersistenceTask.class;
    }

    /** {@inheritDoc} */
    @Override public void printResult(
        CacheFindGarbageCommandArg arg,
        FindAndDeleteGarbageInPersistenceTaskResult res,
        Consumer<String> printer
    ) {<FILL_FUNCTION_BODY>}
}

        CommandUtils.printErrors(res.exceptions(), "Scanning for garbage failed on nodes:", printer);

        for (Map.Entry<UUID, FindAndDeleteGarbageInPersistenceJobResult> nodeEntry : res.result().entrySet()) {
            if (!nodeEntry.getValue().hasGarbage()) {
                printer.accept("Node " + nodeEntry.getKey() + " - garbage not found.");

                continue;
            }

            printer.accept("Garbage found on node " + nodeEntry.getKey() + ":");

            FindAndDeleteGarbageInPersistenceJobResult val = nodeEntry.getValue();

            Map<Integer, Map<Integer, Long>> grpPartErrorsCnt = val.checkResult();

            if (!grpPartErrorsCnt.isEmpty()) {
                for (Map.Entry<Integer, Map<Integer, Long>> entry : grpPartErrorsCnt.entrySet()) {
                    for (Map.Entry<Integer, Long> e : entry.getValue().entrySet()) {
                        printer.accept(INDENT + "Group=" + entry.getKey() +
                            ", partition=" + e.getKey() +
                            ", count of keys=" + e.getValue());
                    }
                }
            }

            printer.accept("");
        }
    
<no_super_class>