boolean (Icon icon1, Icon icon2) { String s1 = String.valueOf(icon1); String s2 = String.valueOf(icon2); if (Comparing.strEqual(s1, s2)) return true; return Comparing.strEqual(ANY_TEXT, s1) || Comparing.strEqual(ANY_TEXT, s2); }