if (!hasSyntaxError(ps.getDoc())) {
PyFormatStd std = new PyFormatStd();
boolean throwSyntaxError = true;
try {
std.applyFormatAction(this, ps, regionsForSave, throwSyntaxError);
statusLineManager.setErrorMessage(null);
} catch (SyntaxErrorException e) {
statusLineManager.setErrorMessage(e.getMessage());
}
}