// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi.stubs;

import com.intellij.openapi.application.ApplicationManager;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.function.Supplier;

public abstract class SerializationManager {
  public static SerializationManager getInstance() {
    return ApplicationManager.getApplication().getService(SerializationManager.class);
  }

  /**
   * Use {@link StubElementTypeHolderEP} to register stub serializer instead of manual registration.
   */
  @ApiStatus.Internal
  public void registerSerializer(ObjectStubSerializer<?, ? extends Stub> serializer) {
    throw new UnsupportedOperationException();
  }

  @Contract("null -> null")
  public abstract @Nullable String internString(@Nullable String string);
}
@@ -631,282 +631,8 @@
  %7D%0A%0A
-  /**%0A   * Use %7B@link StubElementTypeHolderEP%7D to register stub serializer instead of manual registration.%0A   */%0A  @ApiStatus.Internal%0A  public void registerSerializer(ObjectStubSerializer%3C?, ? extends Stub%3E serializer) %7B%0A    throw new UnsupportedOperationException();%0A  %7D%0A%0A
   @C

drop unused method (grammar-kit doesn't use it anymore)