code: private function toComparableNames(array $types, array $symbolShortNames)
      {
          $normalized = array_map(
              function ($type) use ($symbolShortNames) {
                  $type = strtolower($type);
  
                  if (isset($symbolShortNames[$type])) {
                      return $symbolShortNames[$type];
                  }
  
                  return $type;
              },
              $types
          );
  
          sort($normalized);
  
          return $normalized;
      }
docs: Normalizes types to make them comparable.
  
  Converts given types to lowercase, replaces imports aliases with
  their matching FQCN, and finally sorts the result.
  
  @param string[]              $types            The types to normalize
  @param array<string, string> $symbolShortNames The imports aliases
  
  @return array The normalized types