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