void (@NotNull CaretEvent event) { Editor editor = event.getEditor(); if (editor == SoftReference.dereference(myCurrentEditor)) { //noinspection deprecation DocumentationManager.getInstance(Objects.requireNonNull(editor.getProject())).setAllowContentUpdateFromContext(true); } }