void (@NotNull ActionManager actionManager) { outer: while (!myPendingActions.isEmpty()) { for (int i = 0; i < myPendingActions.size(); i++) { AnAction pendingAction = myPendingActions.get(i); Constraints constraints = myConstraints.get(pendingAction); if (constraints != null && addToSortedList(pendingAction, constraints, actionManager)) { myPendingActions.remove(i); continue outer; } } break; } }