class StatsManager {

  public static OperationStats getComponent(String component) {
    // atomic, same as putIfAbsent, but with lambda interface, so we can avoid creating objects
    return getInstance()
        .stats
        .computeIfAbsent(component, key -> new OperationStats(getInstance()));
  }

  private  StatsManager();

}