void () { final PsiJavaFile file = (PsiJavaFile)PsiFileFactory.getInstance(getProject()).createFileFromText("D.java", """ //////////////////////////////////////// /** */ ///////////////////////////////////////////////// class Usage { }"""); final PsiClass psiClass = file.getClasses()[0]; assertNotNull(psiClass.getDocComment()); }