void () { dumpSdkRoots(); VirtualFile skeletonsDir = PyUserSkeletonsUtil.getUserSkeletonsDirectory(); skeletonsDir.refresh(true, true); System.out.println("Under VFS (django): " + skeletonsDir.findChild("django")); System.out.println("Under VFS (django/__init__.py): " + skeletonsDir.findFileByRelativePath("django/__init__.py")); Path djangoDirPath = skeletonsDir.toNioPath().resolve("django"); System.out.println("Under NIO (django): " + Files.exists(djangoDirPath)); Path djangoInitPyPath = skeletonsDir.toNioPath().resolve("django/__init__.py"); System.out.println("Under NIO (django/__init__.py): " + Files.exists(djangoInitPyPath)); GlobalSearchScope projectScope = GlobalSearchScope.allScope(myFixture.getProject()); System.out.println("Under filename index (django): " + FilenameIndex.getVirtualFilesByName("django", projectScope)); List<VirtualFile> djangoInitPy = ContainerUtil.filter(FilenameIndex.getVirtualFilesByName("__init__.py", projectScope), f -> f.getParent().getName().equals("django")); System.out.println("Under filename index (django/__init__.py): " + djangoInitPy); final List<PyFile> djangoModules = PyModuleNameIndex.findByShortName("django", myFixture.getProject(), projectScope); System.out.println("Under module name index: " + ContainerUtil.map(djangoModules, PsiFile::getVirtualFile)); }