void (@NotNull final Integer value) { // Find pair for(int i = myPairs.length - 1; i >= 0; i--){ if(myPairs[i].myValue == value.intValue()){ @NlsSafe String text = myPairs[i].myText; setText(text); return; } } throw new IllegalArgumentException("unknown value: " + value); }