void (PsiSwitchBlock switchBlock) { if (switchBlock != null) { PsiExpression expression = switchBlock.getExpression(); if (expression != null) { PsiType type = expression.getType(); if (type != null) { myResult.add(createInfoImpl(type, ExpectedTypeInfo.TYPE_OR_SUBTYPE, type, JavaTailTypes.forSwitchLabel(switchBlock))); } } } }