AbstractTreeNode (final Project project, final Object element, @NotNull final ViewSettings viewSettings) { if (element instanceof PsiClass && checkClassUnderSources((PsiElement)element, project)) { return new ClassSmartPointerNode(project, (PsiClass)element, viewSettings); } return super.createNode(project, element, viewSettings); }