void (@NlsSafe String annotation) { int insertAt = 0; for (; insertAt < myCombo.getItemCount(); insertAt += 1) { if (myCombo.getItemAt(insertAt).compareTo(annotation) >= 0) break; } myCombo.insertItemAt(annotation, insertAt); }