I need try to run semanticTiargs with flag == 1 and if returned object is not dsymbol - run semanticTiargs with flags == 2. How can I move this code?