docs: public Class getTypeClass(){
          if (clazz != null) return clazz;
          if (redirect != null) return redirect.getTypeClass();
  
          ClassNode component = redirect().componentType;
          if (component!=null && component.isResolved()){
              return Array.newInstance(component.getTypeClass(), 0).getClass();
          }
          throw new GroovyBugError("ClassNode#getTypeClass for "+getName()+" is called before the type class is set ");
      }