public final ComponentAdapter registerComponent(@NotNull ComponentAdapter componentAdapter) {
    if (componentKeyToAdapter.putIfAbsent(componentAdapter.getComponentKey(), componentAdapter) != null) {
      @NotNull String message = "Key " + componentAdapter.getComponentKey() + " duplicated";
      throw new PicoException(message);
    }
    componentAdapters.add(componentAdapter);
    return componentAdapter;
  }
public final ComponentAdapter registerComponent(@NotNull ComponentAdapter componentAdapter)