private static @Nullable TextRange methodRange(@NotNull PsiMethod element) {
    PsiCodeBlock body = element.getBody();
    return body == null ? null : body.getTextRange();
  }
private static @Nullable TextRange methodRange(@NotNull PsiMethod element)