LongRangeSet (PsiExpression collection) { final SpecialField lengthField = SpecialField.COLLECTION_SIZE; final DfType origType = CommonDataflow.getDfType(collection); final DfType length = lengthField.getFromQualifier(origType); final DfIntegralType dfType = ObjectUtils.tryCast(length, DfIntegralType.class); if (dfType == null) return LongRangeSet.all(); return dfType.getRange(); }