code: public static boolean isTrait(final ClassNode cNode) {
          return cNode!=null
                  && ((cNode.isInterface() && !cNode.getAnnotations(TRAIT_CLASSNODE).isEmpty())
                      || isAnnotatedWithTrait(cNode));
      }
docs: Returns true if the specified class node is a trait.
  @param cNode a class node to test
  @return true if the classnode represents a trait