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);
}

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 ) ; }
collects all interfaces of a class node , including those defined by the super class .
