boolean (@NotNull AbstractTreeNode pathComponent, @NotNull VirtualFile thisComponent) { if (pathComponent.canRepresent(thisComponent)) return true; if (pathComponent instanceof Node) return false; ProjectViewNode<?> node = pathComponent instanceof ProjectViewNode ? (ProjectViewNode<?>)pathComponent : null; return node != null && node.contains(thisComponent); }