componentType = new ASTClassOrInterfaceType(type.getParameterizedTypeName());
break;
case LAMBDA_LITERAL:
throw new IllegalArgumentException("Cannot create a type node for a lambda");
case VOID:
return new ASTVoidType();
default:
componentType = new ASTPrimitiveType(type.getBaseType());
break;
}
if (type.getArrayDepth() == 0)