ExternalizableDuplocatorState (@NotNull Language language) { final MultilanguageDuplocatorSettings settings = MultilanguageDuplocatorSettings.getInstance(); DefaultDuplocatorState state = settings.getState(language); if (state == null) { state = new DefaultDuplocatorState(); settings.registerState(language, state); } return state; }