LongRangeSet (PsiModifierListOwner owner) { PsiType type; if (owner instanceof PsiMethod) { type = ((PsiMethod)owner).getReturnType(); } else if (owner instanceof PsiField || owner instanceof PsiParameter) { type = ((PsiVariable)owner).getType(); } else { type = null; } return JvmPsiRangeSetUtil.typeRange(type); }