static Component childWithClassNameEndingWith(Component c, S suffix) { if (endsWith(className(c), suffix)) ret c; Component x; for (Component comp : getComponents(c)) if ((x = childWithClassNameEndingWith(comp, suffix)) != null) ret x; null; }