Buggy code:
public class ConfigurationManager extends AbstractManager { public static final String CONFIG_FILENAME = "ServerListPlus.yml" ; protected static final String BACKUP_FILENAME = "ServerListPlus.bak.yml" ; protected final YAMLWriter yaml ; @ Getter protected final InstanceStorage < Object > defaults = InstanceStorages . create ( ) ; @ Getter protected InstanceStorage < Object > storage = InstanceStorages . createOrdered ( ) . withDefaults ( defaults ) ; @ Getter protected final InstanceStorage < Object > examples = InstanceStorages . createOrdered ( ) ; public ConfigurationManager ( ServerListPlusCore core ) { } protected Path getPluginFolder ( ) { } public Path getConfigPath ( ) { } public YAMLWriter getYAML ( ) { } public void reload ( ) throws ServerListPlusException { getLogger ( ) . log ( INFO , "Reloading<seq2seq4repair_space>configuration..." ) ; Path configPath = getConfigPath ( ) ; getLogger ( ) . log ( DEBUG , ( "Configuration<seq2seq4repair_space>location:<seq2seq4repair_space>" + configPath ) ) ; try { final boolean confExists = Files . exists ( configPath ) ; InstanceStorage < Object > newStorage ; if ( confExists ) { newStorage = InstanceStorages . createOrdered ( ) . withDefaults ( defaults ) ; try ( BufferedReader reader = IOHelper . newBufferedReader ( configPath ) ) { Iterator < Object > itr = yaml . snakeYAML ( ) . getYaml ( ) . loadAll ( reader ) . iterator ( ) ; while ( itr . hasNext ( ) ) { try { Object obj = itr . next ( ) ; if ( ( obj . getClass ( ) ) == ( UnknownConf . class ) ) continue ; newStorage . set ( obj ) ; getLogger ( ) . log ( INFO , ( "Loaded<seq2seq4repair_space>configuration:<seq2seq4repair_space>" + ( obj . getClass ( ) . getSimpleName ( ) ) ) ) ; } catch ( YAMLException e ) { getLogger ( ) . log ( WARN , e , ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>parse<seq2seq4repair_space>a<seq2seq4repair_space>part<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>configuration.<seq2seq4repair_space>Make<seq2seq4repair_space>" + "sure<seq2seq4repair_space>the<seq2seq4repair_space>YAML<seq2seq4repair_space>syntax<seq2seq4repair_space>is<seq2seq4repair_space>valid!" ) ) ; } } } getLogger ( ) . log ( REPORT , ( ( newStorage . size ( ) ) + "<seq2seq4repair_space>configurations<seq2seq4repair_space>loaded." ) ) ; } else { <START_BUG> newStorage = InstanceStorages . createOrdered ( ) . withDefaults ( examples ) ; <END_BUG> } this . storage = newStorage ; if ( ( examples . size ( ) ) > ( newStorage . size ( ) ) ) { if ( confExists ) getLogger ( ) . log ( WARN , ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>load<seq2seq4repair_space>all<seq2seq4repair_space>configurations<seq2seq4repair_space>from<seq2seq4repair_space>the<seq2seq4repair_space>configuration<seq2seq4repair_space>file.<seq2seq4repair_space>Please" + ( "<seq2seq4repair_space>make<seq2seq4repair_space>sure<seq2seq4repair_space>the<seq2seq4repair_space>syntax<seq2seq4repair_space>is<seq2seq4repair_space>correct.<seq2seq4repair_space>Type<seq2seq4repair_space>'//slp<seq2seq4repair_space>save'<seq2seq4repair_space>if<seq2seq4repair_space>you<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>add<seq2seq4repair_space>the<seq2seq4repair_space>missing<seq2seq4repair_space>" + "parts." ) ) ) ; } if ( ! confExists ) try { save ( examples ) ; } catch ( ServerListPlusException ignored ) { } core . getPlugin ( ) . configChanged ( core , storage ) ; getLogger ( ) . log ( DEBUG , "Configuration<seq2seq4repair_space>successfully<seq2seq4repair_space>reloaded!" ) ; } catch ( YAMLException e ) { throw getLogger ( ) . process ( e , ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>parse<seq2seq4repair_space>the<seq2seq4repair_space>configuration.<seq2seq4repair_space>Make<seq2seq4repair_space>sure<seq2seq4repair_space>the<seq2seq4repair_space>YAML<seq2seq4repair_space>syntax<seq2seq4repair_space>is<seq2seq4repair_space>" + "correct!" ) ) ; } catch ( MalformedInputException e ) { throw getLogger ( ) . process ( e , ( "Your<seq2seq4repair_space>configuration<seq2seq4repair_space>contains<seq2seq4repair_space>invalid<seq2seq4repair_space>special<seq2seq4repair_space>characters.<seq2seq4repair_space>Please<seq2seq4repair_space>" + "save<seq2seq4repair_space>your<seq2seq4repair_space>configuration<seq2seq4repair_space>using<seq2seq4repair_space>{}<seq2seq4repair_space>instead." ) , CHARSET . displayName ( ) ) ; } catch ( IOException e ) { throw getLogger ( ) . process ( e , ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>access<seq2seq4repair_space>the<seq2seq4repair_space>configuration<seq2seq4repair_space>file.<seq2seq4repair_space>Make<seq2seq4repair_space>sure<seq2seq4repair_space>that<seq2seq4repair_space>it<seq2seq4repair_space>is<seq2seq4repair_space>" + "accessible<seq2seq4repair_space>by<seq2seq4repair_space>the<seq2seq4repair_space>server." ) ) ; } catch ( Exception e ) { throw getLogger ( ) . process ( e , "An<seq2seq4repair_space>internal<seq2seq4repair_space>error<seq2seq4repair_space>occurred<seq2seq4repair_space>while<seq2seq4repair_space>reloading<seq2seq4repair_space>the<seq2seq4repair_space>configuration!" ) ; } } public void save ( ) throws ServerListPlusException { } private void save ( InstanceStorage < Object > storage ) throws ServerListPlusException { } }

Fix:
newStorage = InstanceStorages . createOrdered ( ) . withDefaults ( examples . withDefaults ( defaults ) ) ;