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