void (String caretPositionedAt) { VirtualFile root = createProjectStructure(getTestDataPath() + TEST_DATA_FOLDER); VirtualFile file = root.findFileByRelativePath(getTestName(true) + "/package-info.java"); assertNotNull(file); PsiFile psiFile = PsiManager.getInstance(myProject).findFile(file); assertNotNull(psiFile); String info = JavaExternalDocumentationTest.getDocumentationText(psiFile, psiFile.getText().indexOf(caretPositionedAt)); assertFileTextEquals(info, getTestName(true) + "/packageInfo.html"); }