private void printInterfaceSet(Collection<InterfaceType> interfaces,
                                       boolean classNotInterface) {
            if (interfaces.size() != 0) {
                System.out.print((classNotInterface?" implements" : " extends"));

                boolean first = true;
                for(InterfaceType interType: interfaces) {
                    if (!first)
                        System.out.print(",");
                    System.out.print(" ");
                    System.out.print(interType.toString());
                    first = false;
                }
            }
        }