boolean (TextAttributes attributes1, TextAttributes attributes2) { if (attributes2 == null) { return attributes1 == null; } if (attributes1 == null) { return false; } if (!Comparing.equal(attributes1.getForegroundColor(), attributes2.getForegroundColor())) { return false; } if (attributes1.getFontType() != attributes2.getFontType()) { return false; } if (!Comparing.equal(attributes1.getBackgroundColor(), attributes2.getBackgroundColor())) { return false; } return Comparing.equal(attributes1.getEffectColor(), attributes2.getEffectColor()); }