code: static TypeName arrayComponent(TypeName type) {
      return type instanceof ArrayTypeName
          ? ((ArrayTypeName) type).componentType
          : null;
    }
docs: Returns the array component of {@code type}, or null if {@code type} is not an array.