PsiElement (@NotNull PsiElement element, boolean canChangeWhiteSpacesOnly) { ASTNode treeElement = element.getNode(); PsiFile file = element.getContainingFile(); final PsiElement formatted = new CodeFormatterFacade(getSettings(file), element.getLanguage(), canChangeWhiteSpacesOnly) .processElement(treeElement).getPsi(); return CoreCodeStyleUtil.postProcessElement(file, formatted, canChangeWhiteSpacesOnly); }