simplify if statement in ResolvableType class

Comment From: rstoyanchev

Thanks for the suggestion. The changes are possible, as suggested also by the IDE, but not necessarily the best outcome for maintenance.