boolean (Presentation p1, Presentation p2) { if (p1 == null || p2 == null) return false; return Objects.equals(p1.getText(), p2.getText()) && Comparing.equal(p1.getIcon(), p2.getIcon()) && Comparing.equal(p1.getHoveredIcon(), p2.getHoveredIcon()) && p1.isEnabled() == p2.isEnabled() && p1.isVisible() == p2.isVisible(); }