boolean (Object object) { if (!(object instanceof MethodUsageGroup group)) { return false; } return Objects.equals(myName, group.myName) && SmartPointerManager.getInstance(myProject).pointToTheSameElement(myMethodPointer, group.myMethodPointer); }