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