void (@NotNull RecentLocationsDataModel data, @NotNull JBList<RecentLocationItem> list, @NotNull JBCheckBox checkBox, @NotNull JBPopup popup) { updateModel(list, data, checkBox.isSelected()); FocusManagerImpl.getInstance().requestFocus(list, false); popup.pack(false, false); }