code: public static boolean isArray(TypeRef type) {
  
          if (type instanceof ClassRef) {
              return ((ClassRef)type).getDimensions() > 0;
          } else if (type instanceof PrimitiveRef) {
              return ((PrimitiveRef)type).getDimensions() > 0;
          } else if (type instanceof TypeParamRef) {
              return ((TypeParamRef)type).getDimensions() > 0;
          } else {
              return false;
          }
      }
docs: Checks if a {@link TypeRef} is an array.
  @param type  The type to check.
  @return      True if its an array.B