Fixed KT-4834 for methods returning Unit.