code: public static boolean isUsingGenericsOrIsArrayUsingGenerics(ClassNode cn) {
          if (cn.isArray()) {
              return isUsingGenericsOrIsArrayUsingGenerics(cn.getComponentType());
          }
          return (cn.isUsingGenerics() && cn.getGenericsTypes() != null);
      }
docs: Returns true if a class node makes use of generic types. If the class node represents an
  array type, then checks if the component type is using generics.
  
  @param cn a class node for which to check if it is using generics
  @return true if the type (or component type) is using generics