public <T> void addExtension(@NotNull ExtensionPointName<T> name, @NotNull T extension) {
    //noinspection TestOnlyProblems
    ApplicationManager.getApplication().getExtensionArea().getExtensionPoint(name).registerExtension(extension, myParentDisposable);
  }
public <T> void addExtension(@NotNull ExtensionPointName<T> name, @NotNull T extension)