Avoid use of this.skip() and this.break()
Avoid use of this.skip() and this.break()

Instead return the corresponding constant values.

Writing it this way also ensure that we don't execute the second if
when first if already matches the skippedTypes.

lebab/lebab,mohebifar/xto6,mohebifar/lebab