void (final PrintStream stream) { final Streamable[] data = { myClassToSubclasses, myClassToClassDependency, myRelativeSourceFilePathToClasses, myClassToRelativeSourceFilePath, }; final String[] info = { "ClassToSubclasses", "ClassToClassDependency", "SourceFileToClasses", "ClassToSourceFile", "SourceFileToAnnotationUsages", "SourceFileToUsages" }; for (int i = 0; i < data.length; i++) { stream.print("Begin Of "); stream.println(info[i]); data[i].toStream(myContext, stream); stream.print("End Of "); stream.println(info[i]); } }