boolean (final Object node, final Object element) { if (node instanceof DefaultMutableTreeNode) { final Object userObject = ((DefaultMutableTreeNode)node).getUserObject(); if (userObject instanceof ProjectViewNode) { final AbstractTreeNode projectViewNode = (ProjectViewNode)userObject; return projectViewNode.canRepresent(element); } } return false; }