GROOVY-5890: Wrong method is selected for "isCase" using "in" operator