}
public static String printAst(PyEdit edit, SimpleNode astToPrint) {
String str = null;
if (astToPrint != null) {
IIndentPrefs indentPrefs;
if (edit != null) {
indentPrefs = edit.getIndentPrefs();
} else {
indentPrefs = DefaultIndentPrefs.get();
}
Str docStr = NodeUtils.getNodeDocStringNode(astToPrint);
if (docStr != null) {
docStr.s = StringUtils.fixWhitespaceColumnsToLeftFromDocstring(docStr.s,
indentPrefs.getIndentationString());
}
PrettyPrinterPrefsV2 prefsV2 = PrettyPrinterV2.createDefaultPrefs(edit, indentPrefs,
PyInformationPresenter.LINE_DELIM);