public <T> void addComponent(@NotNull Class<T> interfaceClass, @NotNull T instance) {
    myComponents.put(interfaceClass, instance);
    registerComponentInDisposer(instance);
  }
public <T> void addComponent(@NotNull Class<T> interfaceClass, @NotNull T instance)