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