boolean (Object obj) { if (!(obj instanceof TodoPattern pattern)) { return false; } if (!indexPattern.equals(pattern.indexPattern)) { return false; } if (!Comparing.equal(attributes, pattern.attributes)) { return false; } return true; }