void (@NotNull DocumentEvent event) { if (!isDisposed && event.isWholeTextReplaced()) { Pair<Point, Short> position = guessPosition(); HintManagerImpl.adjustEditorHintPosition(EmmetPreviewHint.this, myParentEditor, position.first, position.second); myEditor.getScrollingModel().scrollVertically(0); } }