private void appendMethod(StringBuilder builder, String className, String methodName) {
        if (lastClass == null || !lastClass.equals(className)
                || !lastMethodForClass.containsKey(className)
                || !lastMethodForClass.get(className).equals(methodName)) {
            builder.append('\t').append(methodName).append('\n');
        }
    }