final Editor editor = getNameSuggestionsField().getEditor();
if (editor != null) {
editor.getSelectionModel().removeSelection();
editor.getCaretModel().moveToOffset(0);
final Document document = editor.getDocument();
EditorActionManager.getInstance().setReadonlyFragmentModificationHandler(document, new ReadonlyFragmentModificationHandler() {
@Override
public void handle(final ReadOnlyFragmentModificationException e) {
//do nothing
}
});