private @Nullable T doGetImmediateMapping(@Nullable VirtualFile key) {
    MappingValue<T> mappingValue = myMappings.get(key);
    return mappingValue != null ? mappingValue.value() : null;
  }
private @Nullable T doGetImmediateMapping(@Nullable VirtualFile key)