ISerializedObjectTreeProcessor treeProcessor = TreeProcessors.listOf(new TypeSizeReport(reportOutput),
new TreeSizeReport(reportOutput), new SortedTreeSizeReport(reportOutput), new SimilarNodeTreeTransformator(
new SortedTreeSizeReport(reportOutput)));
ITreeFilter filter = new TypeFilter(Class.class);
ISerializedObjectTreeProcessor cleanedTreeProcessor = new TreeTransformator(treeProcessor,
TreeTransformator.strip(filter));
ISerializationListener listener = SerializationListeners.listOf(
new DefaultJavaSerializationValidator(), new LoggingSerializationListener(),
new AnalyzingSerializationListener(labelizer, treeProcessor),
new AnalyzingSerializationListener(labelizer, cleanedTreeProcessor));