boolean (boolean fullMode) { if (!editor.isEnabled()) { // do nothing if not enabled return true; } choices.clear(); maxIterationChoices = maxChoices; if (fullMode) { missingChoices = (customChoices == null) ? Collections.emptyMap() : new HashMap<>(customChoices); } else { maxIterationChoices -= editor.getChoicesSize(); } return maxIterationChoices <= 0; }