void (String className) { PsiClass psiClass = myJavaFacade.findClass(className); assertNotNull(psiClass); String doc = JavaDocumentationProvider.generateExternalJavadoc(psiClass, (List<String>)null); assertNotNull(doc); PsiDirectory dir = (PsiDirectory)psiClass.getParent().getParent(); PsiFile htmlFile = dir.findFile(psiClass.getName() + ".html"); assertNotNull(htmlFile); assertEquals(StringUtil.convertLineSeparators(htmlFile.getText().trim()), replaceEnvironmentDependentContent(doc)); }