void () { FindModel findModel = FindManagerTestUtils.configureFindModel("done"); VirtualFile rtJar = Stream.of(getTestProjectJdk().getRootProvider().getFiles(OrderRootType.CLASSES)) .filter(file -> file.getPath().contains("rt.jar")) .map(file -> JarFileSystem.getInstance().getLocalByEntry(file)) .findFirst().orElse(null); assertNotNull(rtJar); findModel.setProjectScope(false); findModel.setDirectoryName(rtJar.getPath()); assertNotNull(FindInProjectUtil.getDirectory(findModel)); VirtualFile jarRootForLocalFile = JarFileSystem.getInstance().getJarRootForLocalFile(rtJar); VirtualFile jarPackageInRtJar = jarRootForLocalFile.findChild("java"); assertNotNull(jarPackageInRtJar); findModel.setDirectoryName(jarPackageInRtJar.getPath()); assertNotNull(FindInProjectUtil.getDirectory(findModel)); }