boolean (List<PsiExpression> resultExpressions, int[] ranks, final PsiPrimitiveType type) { return ArrayUtil.find(ranks, TypeConversionUtil.getTypeRank(type)) > -1 && resultExpressions.stream().allMatch(expression -> TypeConversionUtil.areTypesAssignmentCompatible(type, expression)); }