void () { String jarPath = PathManager.getJarPathForClass(Test.class); VirtualFile jarFile = LocalFileSystem.getInstance().findFileByPath(jarPath); assertNotNull(jarFile); VirtualFile jarRoot = JarFileSystem.getInstance().getJarRootForLocalFile(jarFile); assertNotNull(jarRoot); VirtualFile entryFile = findByPath(jarPath + JarFileSystem.JAR_SEPARATOR + "org/junit/Test.class"); VirtualFile entryRoot = JarFileSystem.getInstance().getJarRootForLocalFile(entryFile); assertNull(entryRoot); VirtualFile nonJarFile = LocalFileSystem.getInstance().findFileByPath(PlatformTestUtil.getJavaExe()); assertNotNull(nonJarFile); VirtualFile nonJarRoot = JarFileSystem.getInstance().getJarRootForLocalFile(nonJarFile); assertNull(nonJarRoot); }