// the stylesheet and then compute the per-instance replacements.
ExternalClassesCollector externalClasses = new ExternalClassesCollector();
externalClasses.accept(sheet);
ClassRenamer renamer = new ClassRenamer(logger,
classReplacementsWithPrefix, strict, externalClasses.getClasses());
renamer.accept(sheet);
Map<JMethod, String> actualReplacements = new TreeMap<JMethod, String>(
new Comparator<JMethod>() {
@Override
public int compare(JMethod o1, JMethod o2) {
int result = source(o1).compareTo(source(o2));