void (@NotNull Config config) { config.branchNameFormat = TaskUtil.updateToVelocity(config.branchNameFormat); config.changelistNameFormat = TaskUtil.updateToVelocity(config.changelistNameFormat); XmlSerializerUtil.copyBean(config, myConfig); myRepositories.clear(); Element element = config.servers; List<TaskRepository> repositories = loadRepositories(element); myRepositories.addAll(repositories); myTasks.clear(); for (LocalTaskImpl task : config.tasks) { if (task.getRepository() == null) { // restore repository from url String url = task.getIssueUrl(); if (url != null) { for (TaskRepository repository : repositories) { if (repository.getUrl() != null && url.startsWith(repository.getUrl())) { task.setRepository(repository); } } } } addTask(task); } }