boolean (@Nullable PsiType type) { if (type == null) return false; PsiType mapExpressionType = myMapExpression.getType(); PsiType valueTypeParameter = PsiUtil.substituteTypeParameter(mapExpressionType, CommonClassNames.JAVA_UTIL_MAP, 1, false); return valueTypeParameter != null && valueTypeParameter.isAssignableFrom(type); }