private static boolean checkIsFutureType(BType sourceType, BFutureType targetType, List<TypePair> unresolvedTypes) { if (sourceType.getTag() != TypeTags.FUTURE_TAG) { return false; } return checkContraints(((BFutureType) sourceType).getConstrainedType(), targetType.getConstrainedType(), unresolvedTypes); }