final ExpectedTypeInfo[] infos = JavaCompletionUtil.EXPECTED_TYPES.getValue(location);
boolean isDefaultType = false;
if (infos != null) {
final PsiType type = JavaPsiFacade.getInstance(psiClass.getProject()).getElementFactory().createType(psiClass);
for (final ExpectedTypeInfo info : infos) {
<BUG>final PsiType infoType = info.getType().getDeepComponentType();

final PsiType defaultType = info.getDefaultType().getDeepComponentType();
</BUG>
if (!defaultType.equals(infoType) && infoType.isAssignableFrom(type)) {

final ExpectedTypeInfo[] infos = JavaCompletionUtil.EXPECTED_TYPES.getValue(location);
boolean isDefaultType = false;
if (infos != null) {
final PsiType type = JavaPsiFacade.getInstance(psiClass.getProject()).getElementFactory().createType(psiClass);
for (final ExpectedTypeInfo info : infos) {
final PsiType infoType = TypeConversionUtil.erasure(info.getType().getDeepComponentType());
final PsiType defaultType = TypeConversionUtil.erasure(info.getDefaultType().getDeepComponentType());
if (!defaultType.equals(infoType) && infoType.isAssignableFrom(type)) {
