code: private @Nullable ProtoType importedType(ProtoType type) {
      // Map key type is always scalar.
      if (type.isMap()) type = type.valueType();
      return type.isScalar() ? null : type;
    }
docs: Returns the type to import for {@code type}.