@Override
  public boolean equals(Object o) {
    if (!(o instanceof ToolsImpl tools)) return false;
    if (myEnabled != tools.myEnabled) return false;
    if (getTools().size() != tools.getTools().size()) return false;
    for (int i = 0; i < getTools().size(); i++) {
      ScopeToolState state = getTools().get(i);
      ScopeToolState toolState = tools.getTools().get(i);
      if (!state.equalTo(toolState)) {
        return false;
      }
    }
    return true;
  }
@Override
  public boolean equals(Object o)