LongRangeSet (@Nullable PsiModifierListOwner owner) { if (owner == null) return LongRangeSet.all(); return StreamEx.of(AnnotationUtil.findAnnotation(owner, JETBRAINS_RANGE), owner.getAnnotation(JETBRAINS_RANGE)) .nonNull() .append(AnnotationUtil.findAnnotations(owner, ANNOTATIONS)) .map(JvmPsiRangeSetUtil::fromAnnotation).foldLeft(LongRangeSet.all(), LongRangeSet::meet); }