private boolean select(int n) {
        int current = focusedList.getSelectedIndex();
        setPopupFocused(true);
        if (n >= 0) {
            focusedList.setSelectedIndex(n);
            focusedList.ensureIndexIsVisible(n);
        }

        return current != focusedList.getSelectedIndex();
    }
private boolean select(int n)