Program: 397
Project: 397
Buggy source:
@Override @SuppressWarnings("String_Node_Str") public void initialise(){
  setAnimationSystem(MenuAnimationSystems.createDefaultSwipeAnimation());
  UILabel gameTypeTitle=find("String_Node_Str",UILabel.class);
  if (gameTypeTitle != null) {
    gameTypeTitle.bindText(new ReadOnlyBinding<String>(){
      @Override public String get(){
        if (loadingAsServer) {
          return translationSystem.translate("String_Node_Str");
        }
 else {
          return translationSystem.translate("String_Node_Str");
        }
      }
    }
);
  }
  final UIText worldName=find("String_Node_Str",UIText.class);
  setGameName(worldName);
  final UIText seed=find("String_Node_Str",UIText.class);
  if (seed != null) {
    seed.setText(new FastRandom().nextString(32));
  }
  final UIDropdownScrollable<Module> gameplay=find("String_Node_Str",UIDropdownScrollable.class);
  gameplay.setOptions(getGameplayModules());
  gameplay.setVisibleOptions(3);
  gameplay.bindSelection(new Binding<Module>(){
    Module selected;
    @Override public Module get(){
      return selected;
    }
    @Override public void set(    Module value){
      setSelectedGameplayModule(value);
      selected=value;
    }
  }
);
  gameplay.setOptionRenderer(new StringTextRenderer<Module>(){
    @Override public String getString(    Module value){
      return value.getMetadata().getDisplayName().value();
    }
  }
);
  UILabel gameplayDescription=find("String_Node_Str",UILabel.class);
  gameplayDescription.bindText(new ReadOnlyBinding<String>(){
    @Override public String get(){
      Module selectedModule=gameplay.getSelection();
      if (selectedModule != null) {
        return selectedModule.getMetadata().getDescription().value();
      }
 else {
        return "String_Node_Str";
      }
    }
  }
);
  final UIDropdownScrollable<WorldGeneratorInfo> worldGenerator=find("String_Node_Str",UIDropdownScrollable.class);
  if (worldGenerator != null) {
    worldGenerator.bindOptions(new ReadOnlyBinding<List<WorldGeneratorInfo>>(){
      @Override public List<WorldGeneratorInfo> get(){
        Set<Name> enabledModuleNames=getAllEnabledModuleNames().stream().collect(Collectors.toSet());
        List<WorldGeneratorInfo> result=Lists.newArrayList();
        for (        WorldGeneratorInfo option : worldGeneratorManager.getWorldGenerators()) {
          if (enabledModuleNames.contains(option.getUri().getModuleName())) {
            result.add(option);
          }
        }
        return result;
      }
    }
);
    worldGenerator.setVisibleOptions(3);
    worldGenerator.bindSelection(new Binding<WorldGeneratorInfo>(){
      @Override public WorldGeneratorInfo get(){
        WorldGeneratorInfo info=worldGeneratorManager.getWorldGeneratorInfo(config.getWorldGeneration().getDefaultGenerator());
        if (info != null && getAllEnabledModuleNames().contains(info.getUri().getModuleName())) {
          return info;
        }
        for (        WorldGeneratorInfo worldGenInfo : worldGeneratorManager.getWorldGenerators()) {
          if (getAllEnabledModuleNames().contains(worldGenInfo.getUri().getModuleName())) {
            set(worldGenInfo);
            return worldGenInfo;
          }
        }
        return null;
      }
      @Override public void set(      WorldGeneratorInfo value){
        if (value != null) {
          config.getWorldGeneration().setDefaultGenerator(value.getUri());
        }
      }
    }
);
    worldGenerator.setOptionRenderer(new StringTextRenderer<WorldGeneratorInfo>(){
      @Override public String getString(      WorldGeneratorInfo value){
        if (value != null) {
          return value.getDisplayName();
        }
        return "String_Node_Str";
      }
    }
);
  }
  WidgetUtil.trySubscribe(this,"String_Node_Str",button -> triggerBackAnimation());
  WidgetUtil.trySubscribe(this,"String_Node_Str",button -> {
    if (worldGenerator.getSelection() == null) {
      MessagePopup errorMessagePopup=getManager().pushScreen(MessagePopup.ASSET_URI,MessagePopup.class);
      if (errorMessagePopup != null) {
        errorMessagePopup.setMessage("String_Node_Str","String_Node_Str");
      }
    }
 else {
      GameManifest gameManifest=new GameManifest();
      gameManifest.setTitle(worldName.getText());
      gameManifest.setSeed(seed.getText());
      DependencyResolver resolver=new DependencyResolver(moduleManager.getRegistry());
      ResolutionResult result=resolver.resolve(config.getDefaultModSelection().listModules());
      if (!result.isSuccess()) {
        MessagePopup errorMessagePopup=getManager().pushScreen(MessagePopup.ASSET_URI,MessagePopup.class);
        if (errorMessagePopup != null) {
          errorMessagePopup.setMessage("String_Node_Str","String_Node_Str");
        }
        return;
      }
      for (      Module module : result.getModules()) {
        gameManifest.addModule(module.getId(),module.getVersion());
      }
      float timeOffset=0.25f + 0.025f;
      WorldInfo worldInfo=new WorldInfo(TerasologyConstants.MAIN_WORLD,gameManifest.getSeed(),(long)(WorldTime.DAY_LENGTH * timeOffset),worldGenerator.getSelection().getUri());
      gameManifest.addWorld(worldInfo);
      gameEngine.changeState(new StateLoading(gameManifest,(loadingAsServer) ? NetworkMode.DEDICATED_SERVER : NetworkMode.NONE));
    }
  }
);
  UIButton previewSeed=find("String_Node_Str",UIButton.class);
  ReadOnlyBinding<Boolean> worldGeneratorSelected=new ReadOnlyBinding<Boolean>(){
    @Override public Boolean get(){
      return worldGenerator != null && worldGenerator.getSelection() != null;
    }
  }
;
  previewSeed.bindEnabled(worldGeneratorSelected);
  PreviewWorldScreen screen=getManager().createScreen(PreviewWorldScreen.ASSET_URI,PreviewWorldScreen.class);
  WidgetUtil.trySubscribe(this,"String_Node_Str",button -> {
    if (screen != null) {
      screen.bindSeed(BindHelper.bindBeanProperty("String_Node_Str",seed,String.class));
      try {
        screen.setEnvironment();
        triggerForwardAnimation(screen);
      }
 catch (      Exception e) {
        String msg="String_Node_Str" + e.toString();
        getManager().pushScreen(MessagePopup.ASSET_URI,MessagePopup.class).setMessage("String_Node_Str",msg);
        logger.error("String_Node_Str",e);
      }
    }
  }
);
  WidgetUtil.trySubscribe(this,"String_Node_Str",w -> triggerForwardAnimation(SelectModulesScreen.ASSET_URI));
}

Fixed version (ground truth):
@Override @SuppressWarnings("String_Node_Str") public void initialise(){
  setAnimationSystem(MenuAnimationSystems.createDefaultSwipeAnimation());
  UILabel gameTypeTitle=find("String_Node_Str",UILabel.class);
  if (gameTypeTitle != null) {
    gameTypeTitle.bindText(new ReadOnlyBinding<String>(){
      @Override public String get(){
        if (loadingAsServer) {
          return translationSystem.translate("String_Node_Str");
        }
 else {
          return translationSystem.translate("String_Node_Str");
        }
      }
    }
);
  }
  final UIText worldName=find("String_Node_Str",UIText.class);
  setGameName(worldName);
  final UIText seed=find("String_Node_Str",UIText.class);
  if (seed != null) {
    seed.setText(new FastRandom().nextString(32));
  }
  final UIDropdownScrollable<Module> gameplay=find("String_Node_Str",UIDropdownScrollable.class);
  gameplay.setOptions(getGameplayModules());
  gameplay.setVisibleOptions(3);
  gameplay.bindSelection(new Binding<Module>(){
    Module selected;
    @Override public Module get(){
      return selected;
    }
    @Override public void set(    Module value){
      setSelectedGameplayModule(value);
      selected=value;
    }
  }
);
  gameplay.setOptionRenderer(new StringTextRenderer<Module>(){
    @Override public String getString(    Module value){
      return value.getMetadata().getDisplayName().value();
    }
    @Override public void draw(    Module value,    Canvas canvas){
      canvas.getCurrentStyle().setTextColor(validateModuleDependencies(value.getId()) ? Color.WHITE : Color.RED);
      super.draw(value,canvas);
      canvas.getCurrentStyle().setTextColor(Color.WHITE);
    }
  }
);
  UILabel gameplayDescription=find("String_Node_Str",UILabel.class);
  gameplayDescription.bindText(new ReadOnlyBinding<String>(){
    @Override public String get(){
      Module selectedModule=gameplay.getSelection();
      if (selectedModule != null) {
        return selectedModule.getMetadata().getDescription().value();
      }
 else {
        return "String_Node_Str";
      }
    }
  }
);
  final UIDropdownScrollable<WorldGeneratorInfo> worldGenerator=find("String_Node_Str",UIDropdownScrollable.class);
  if (worldGenerator != null) {
    worldGenerator.bindOptions(new ReadOnlyBinding<List<WorldGeneratorInfo>>(){
      @Override public List<WorldGeneratorInfo> get(){
        Set<Name> enabledModuleNames=getAllEnabledModuleNames().stream().collect(Collectors.toSet());
        List<WorldGeneratorInfo> result=Lists.newArrayList();
        for (        WorldGeneratorInfo option : worldGeneratorManager.getWorldGenerators()) {
          if (enabledModuleNames.contains(option.getUri().getModuleName())) {
            result.add(option);
          }
        }
        return result;
      }
    }
);
    worldGenerator.setVisibleOptions(3);
    worldGenerator.bindSelection(new Binding<WorldGeneratorInfo>(){
      @Override public WorldGeneratorInfo get(){
        WorldGeneratorInfo info=worldGeneratorManager.getWorldGeneratorInfo(config.getWorldGeneration().getDefaultGenerator());
        if (info != null && getAllEnabledModuleNames().contains(info.getUri().getModuleName())) {
          return info;
        }
        for (        WorldGeneratorInfo worldGenInfo : worldGeneratorManager.getWorldGenerators()) {
          if (getAllEnabledModuleNames().contains(worldGenInfo.getUri().getModuleName())) {
            set(worldGenInfo);
            return worldGenInfo;
          }
        }
        return null;
      }
      @Override public void set(      WorldGeneratorInfo value){
        if (value != null) {
          config.getWorldGeneration().setDefaultGenerator(value.getUri());
        }
      }
    }
);
    worldGenerator.setOptionRenderer(new StringTextRenderer<WorldGeneratorInfo>(){
      @Override public String getString(      WorldGeneratorInfo value){
        if (value != null) {
          return value.getDisplayName();
        }
        return "String_Node_Str";
      }
    }
);
    final UIButton playButton=find("String_Node_Str",UIButton.class);
    playButton.bindEnabled(new Binding<Boolean>(){
      @Override public Boolean get(){
        return validateModuleDependencies(gameplay.getSelection().getId());
      }
      @Override public void set(      Boolean value){
        playButton.setEnabled(value);
      }
    }
);
  }
  WidgetUtil.trySubscribe(this,"String_Node_Str",button -> triggerBackAnimation());
  WidgetUtil.trySubscribe(this,"String_Node_Str",button -> {
    if (worldGenerator.getSelection() == null) {
      MessagePopup errorMessagePopup=getManager().pushScreen(MessagePopup.ASSET_URI,MessagePopup.class);
      if (errorMessagePopup != null) {
        errorMessagePopup.setMessage("String_Node_Str","String_Node_Str");
      }
    }
 else {
      GameManifest gameManifest=new GameManifest();
      gameManifest.setTitle(worldName.getText());
      gameManifest.setSeed(seed.getText());
      DependencyResolver resolver=new DependencyResolver(moduleManager.getRegistry());
      ResolutionResult result=resolver.resolve(config.getDefaultModSelection().listModules());
      if (!result.isSuccess()) {
        MessagePopup errorMessagePopup=getManager().pushScreen(MessagePopup.ASSET_URI,MessagePopup.class);
        if (errorMessagePopup != null) {
          errorMessagePopup.setMessage("String_Node_Str","String_Node_Str");
        }
        return;
      }
      for (      Module module : result.getModules()) {
        gameManifest.addModule(module.getId(),module.getVersion());
      }
      float timeOffset=0.25f + 0.025f;
      WorldInfo worldInfo=new WorldInfo(TerasologyConstants.MAIN_WORLD,gameManifest.getSeed(),(long)(WorldTime.DAY_LENGTH * timeOffset),worldGenerator.getSelection().getUri());
      gameManifest.addWorld(worldInfo);
      gameEngine.changeState(new StateLoading(gameManifest,(loadingAsServer) ? NetworkMode.DEDICATED_SERVER : NetworkMode.NONE));
    }
  }
);
  UIButton previewSeed=find("String_Node_Str",UIButton.class);
  ReadOnlyBinding<Boolean> worldGeneratorSelected=new ReadOnlyBinding<Boolean>(){
    @Override public Boolean get(){
      return worldGenerator != null && worldGenerator.getSelection() != null;
    }
  }
;
  previewSeed.bindEnabled(worldGeneratorSelected);
  PreviewWorldScreen screen=getManager().createScreen(PreviewWorldScreen.ASSET_URI,PreviewWorldScreen.class);
  WidgetUtil.trySubscribe(this,"String_Node_Str",button -> {
    if (screen != null) {
      screen.bindSeed(BindHelper.bindBeanProperty("String_Node_Str",seed,String.class));
      try {
        screen.setEnvironment();
        triggerForwardAnimation(screen);
      }
 catch (      Exception e) {
        String msg="String_Node_Str" + e.toString();
        getManager().pushScreen(MessagePopup.ASSET_URI,MessagePopup.class).setMessage("String_Node_Str",msg);
        logger.error("String_Node_Str",e);
      }
    }
  }
);
  WidgetUtil.trySubscribe(this,"String_Node_Str",w -> triggerForwardAnimation(SelectModulesScreen.ASSET_URI));
}