void (int row, @NotNull VcsDirectoryMapping mapping) { List<MapInfo> items = new ArrayList<>(myModel.getItems()); items.set(row, MapInfo.registered(mapping, isMappingValid(mapping))); items.sort(MapInfo.COMPARATOR); myModel.setItems(items); }