void (ExpectedTypeInfo[] expectedTypes, ArrayList<? super PsiType> allowedTypes) { for (ExpectedTypeInfo info : expectedTypes) { if (info.getKind() == ExpectedTypeInfo.TYPE_SAME_SHAPED) { allowedTypes.add(info.getDefaultType()); } } }