boolean (ProjectViewNode node, Object element) { if (element instanceof PackageElement) { for (VirtualFile virtualFile : ((PackageElement)element).getRoots()) { if (node.contains(virtualFile)) return true; } } return super.contains(node, element); }