private @NotNull ScopeToolState insertTool(@NotNull ScopeToolState scopeToolState, int idx) {
    if (myTools == null) {
      myTools = new ArrayList<>();
      if (scopeToolState.isEnabled()) {
        setEnabled(true);
      }
    }
    myTools.add(idx, scopeToolState);
    return scopeToolState;
  }
private @NotNull ScopeToolState insertTool(@NotNull ScopeToolState scopeToolState, int idx)