public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof ClassFilter classFilter)) return false;
    return isEnabled() == classFilter.isEnabled() && getPattern().equals(classFilter.getPattern());
  }
public boolean equals(Object o)