TextRange (@NotNull PsiMethod method) { int endOffset = method.getThrowsList().getTextRange().getEndOffset(); int startOffset = method.getTextRange().getStartOffset(); return new TextRange(startOffset, endOffset); }