Collection<Element> () { List<Element> result = new ArrayList<>(); //noinspection CollectionAddAllCanBeReplacedWithConstructor result.addAll(JDOMUtil.getChildren(myWorkspaceFile.findComponent(RUN_MANAGER_COMPONENT_NAME), CONFIGURATION_ELEMENT)); if (myProjectFile != null) { result.addAll(JDOMUtil.getChildren(myProjectFile.findComponent(RunManagerImplKt.PROJECT_RUN_MANAGER_COMPONENT_NAME), CONFIGURATION_ELEMENT)); } for (Path file : getSharedConfigurationFiles()) { result.addAll(JDOMUtil.getChildren(context.getOrCreateFile(file).getRootElement(), CONFIGURATION_ELEMENT)); } return result; }