void showPopup(Component editor) {
        int width = editor.getParent().getWidth() - 1;
        configurePaneSize(choicesScrollPane, width);
        configurePaneSize(historyScrollPane, width);
        popup.show(editor, -editor.getLocation().x - 1, editor.getHeight());
    }
void showPopup(Component editor)