private int getIndex(@NotNull ListPluginComponent component) {
    int index = myComponents.indexOf(component);
    assert index >= 0 : component;
    return index;
  }
private int getIndex(@NotNull ListPluginComponent component)