Element (@Nullable Element root, @NonNls String componentName) { for (Element element : JDOMUtil.getChildren(root, COMPONENT_ELEMENT)) { if (isComponent(componentName, element)) { return element; } } return null; }