void (String className, String expectedText) { PsiClass psiClass = JavaPsiFacade.getInstance(getProject()).findClass(className, GlobalSearchScope.moduleWithLibrariesScope(getModule())); assertNotNull(psiClass); myFixture.openFileInEditor(psiClass.getContainingFile().getVirtualFile()); String documentText = myFixture.getEditor().getDocument().getText(); assertThat(documentText).startsWith(IdeaDecompiler.BANNER); Set<String> gutters = myFixture.findAllGutters().stream() .map(GutterMark::getTooltipText) .filter(Objects::nonNull) .map(s -> s.replaceAll(" +", " ").replace("&nbsp;", " ").replace("&quot;", "'").replace("&gt;", ">")) .collect(Collectors.toSet()); assertThat(gutters).contains(expectedText); }