boolean (Object object) { if (object == this) return true; if (object instanceof ChangeListScope scope) { return scope.getIcon() == getIcon() && scope.getScopeId().equals(getScopeId()); } return false; }