TextRange (@NotNull PsiMethod method) { if (method instanceof SyntheticElement) return TextRange.EMPTY_RANGE; int start = stripAnnotationsFromModifierList(method.getModifierList()); TextRange throwsRange = method.getThrowsList().getTextRange(); LOG.assertTrue(throwsRange != null, method); int end = throwsRange.getEndOffset(); return new TextRange(start, end); }