code: private static void collectAllInterfaces(final ClassNode node, final Set<ClassNode> out) {
          if (node == null) return;
          Set<ClassNode> allInterfaces = node.getAllInterfaces();
          out.addAll(allInterfaces);
          collectAllInterfaces(node.getSuperClass(), out);
      }
docs: Collects all interfaces of a class node, including those defined by the
  super class.
  
  @param node a class for which we want to retrieve all interfaces
  @param out  the set where to collect interfaces