boolean (@NotNull UInjectionHost expression) { if (expression.getUastParent() instanceof USwitchClauseExpression parent) { return ContainerUtil.exists(parent.getCaseValues(), value -> expression.equals(UastLiteralUtils.wrapULiteral(value))); } return false; }