@NotNull
  public static TextRange getDeclarationRange(@NotNull PsiElement container) {
    TextRange textRange = getPossibleDeclarationAtRange(container);
    assert textRange != null : "Declaration range is invalid for " + container.getClass();
    return textRange;
  }
@NotNull
  public static TextRange getDeclarationRange(@NotNull PsiElement container)