BS-9610: differentiate input type and return type of a Widget, it is
different only for FileWidget