JComponent (final AbstractDomChildrenDescription description) { for (Field field : getClass().getDeclaredFields()) { try { field.setAccessible(true); if (description instanceof DomChildrenDescription childrenDescription) { if (convertFieldName(field.getName(), childrenDescription).equals(childrenDescription.getXmlElementName()) && field.get(this) instanceof JComponent) { return (JComponent)field.get(this); } } } catch (IllegalAccessException e) { LOG.error(e); } } return null; }