@isopov , what do you mean ? it is main logic to distinguish enums by type. please clarify question.