void (@NotNull final String path, @NotNull final List<? extends PackagingElement<?>> elements) { final List<PackagingElement<?>> toSelect = new ArrayList<>(); editLayout(() -> { final CompositePackagingElement<?> directory = PackagingElementFactory.getInstance().getOrCreateDirectory(getArtifact().getRootElement(), path); toSelect.addAll(directory.addOrFindChildren(elements)); }); myArtifactsEditor.getSourceItemsTree().rebuildTree(); updateAndSelect(getRootNode(), toSelect); }