void (@Nullable PsiElement element, @NotNull StringBuilder sb, CommentTracker ct) { if (element == null) { return; } PsiElement current = element.getNextSibling(); while (current instanceof PsiComment || current instanceof PsiWhiteSpace) { sb.append(ct.text(current)); current = current.getNextSibling(); } }