Adding check for non-void and parameter-less methods during output data
generation.