LongRangeSet (@Nullable PsiExpression expression) { if (expression == null) return null; Object value = ExpressionUtils.computeConstantExpression(expression); LongRangeSet rangeSet = LongRangeSet.fromConstant(value); if (rangeSet != null) return rangeSet; DfType dfType = getDfType(expression); return dfType instanceof DfIntegralType ? ((DfIntegralType)dfType).getRange() : null; }