public static function isLeafType($type) { return $type instanceof AbstractEnumType || TypeService::isScalarType($type); }