void () { ApplicationManager.getApplication().invokeLater(() -> { Editor editor = FileEditorManager.getInstance(myProject).getSelectedTextEditor(); if (editor == null) { return; } reshowInlayToolbar(editor); }); }