Collection<Element> (@NotNull String componentName, @NotNull String tagName) { List<Element> result = new ArrayList<>(); if (projectFile != null) { result.addAll(JDOMUtil.getChildren(projectFile.findComponent(componentName), tagName)); } for (Path file : getSettingsFiles()) { result.addAll(JDOMUtil.getChildren(context.getOrCreateFile(file).getRootElement(), tagName)); } return result; }