String (@NotNull PsiElement root, boolean showWhitespaces, boolean showRanges, boolean showClassNames, @Nullable PairConsumer<? super PsiElement, ? super Consumer<? super PsiElement>> extra) { StringBuilder buffer = new StringBuilder(); psiToBuffer(buffer, root, showWhitespaces, showRanges, showClassNames, extra); return buffer.toString(); }