PyUserSkeletonsNode (@NotNull Project project, ViewSettings viewSettings) { final VirtualFile userSkeletonsVirtualFile = PyUserSkeletonsUtil.getUserSkeletonsDirectory(); if (userSkeletonsVirtualFile != null) { final PsiDirectory userSkeletonsDirectory = PsiManager.getInstance(project).findDirectory(userSkeletonsVirtualFile); if (userSkeletonsDirectory != null) { return new PyUserSkeletonsNode(project, userSkeletonsDirectory, viewSettings); } } return null; }