AbstractTreeNode (final Project project, final Object element, @NotNull final ViewSettings viewSettings) { if (element instanceof PsiMethod) { return new MethodSmartPointerNode(project, (PsiMethod)element, viewSettings); } return super.createNode(project, element, viewSettings); }