boolean (@NotNull PackagingElementNode node) { final LayoutTree tree = myArtifactsEditor.getLayoutTreeComponent().getLayoutTree(); final TreePath path = tree.getPathFor(node); if (path != null) { for (PackagingElementNode<?> selectedNode : myNodes) { if (pathContains(path, selectedNode, tree)) { return false; } } } return true; }