@TestOnly
  public static void registerDeclaration(Editor editor, PsiDeclarationStatement declarationStatement, Disposable parentDisposable) {
    editor.putUserData(DECLARATION_KEY, SmartPointerManager.createPointer(declarationStatement));
    Disposer.register(parentDisposable, () -> editor.putUserData(DECLARATION_KEY, null));
  }
@TestOnly
  public static void registerDeclaration(Editor editor, PsiDeclarationStatement declarationStatement, Disposable parentDisposable)