Ported 'ConvertIfStatementToReturnStatementAction'.