void (@NotNull PsiSwitchBlock statement) { if (statement.getExpression() == this.myExpr) { List<ExpectedTypeInfo> collectedTypes = collectFromLabels(statement); if (!collectedTypes.isEmpty()) { myResult.addAll(collectedTypes); return; } } myResult.add(createInfoImpl(PsiTypes.intType(), PsiTypes.intType())); LanguageLevel level = PsiUtil.getLanguageLevel(statement); if (level.isAtLeast(LanguageLevel.JDK_1_5)) { PsiClassType enumType = TypeUtils.getType(CommonClassNames.JAVA_LANG_ENUM, statement); myResult.add(createInfoImpl(enumType, enumType)); if (level.isAtLeast(LanguageLevel.JDK_1_7)) { PsiClassType stringType = TypeUtils.getStringType(statement); myResult.add(createInfoImpl(stringType, stringType)); } } }