Program: 341
Project: 341
Buggy source:
@Override protected AssetManager setupAssetManager(){
  ModuleAwareAssetTypeManager assetTypeManager=new ModuleAwareAssetTypeManager();
  assetTypeManager.registerCoreAssetType(Prefab.class,(AssetFactory<Prefab,PrefabData>)PojoPrefab::new,false,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(BlockShape.class,(AssetFactory<BlockShape,BlockShapeData>)BlockShapeImpl::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(BlockSounds.class,(AssetFactory<BlockSounds,BlockSoundsData>)BlockSounds::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(BlockTile.class,(AssetFactory<BlockTile,TileData>)BlockTile::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(BlockFamilyDefinition.class,(AssetFactory<BlockFamilyDefinition,BlockFamilyDefinitionData>)BlockFamilyDefinition::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(StaticSound.class,NullSound::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(StreamingSound.class,NullStreamingSound::new,"String_Node_Str");
  BlockFamilyRegistry blockFamilyFactoryRegistry=new BlockFamilyRegistry();
  blockFamilyFactoryRegistry.setBlockFamily("String_Node_Str",HorizontalFamily.class);
  blockFamilyFactoryRegistry.setBlockFamily("String_Node_Str",AttachedToSurfaceFamily.class);
  assetTypeManager.registerCoreFormat(BlockFamilyDefinition.class,new BlockFamilyDefinitionFormat(assetTypeManager.getAssetManager(),blockFamilyFactoryRegistry));
  assetTypeManager.registerCoreAssetType(UISkin.class,(AssetFactory<UISkin,UISkinData>)UISkin::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(BehaviorTree.class,(AssetFactory<BehaviorTree,BehaviorTreeData>)BehaviorTree::new,false,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(UIElement.class,(AssetFactory<UIElement,UIData>)UIElement::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(Font.class,(AssetFactory<Font,FontData>)FontImpl::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(Texture.class,(AssetFactory<Texture,TextureData>)HeadlessTexture::new,"String_Node_Str","String_Node_Str");
  assetTypeManager.registerCoreFormat(Texture.class,new PNGTextureFormat(Texture.FilterMode.NEAREST,path -> path.getName(2).toString().equals("String_Node_Str")));
  assetTypeManager.registerCoreFormat(Texture.class,new PNGTextureFormat(Texture.FilterMode.LINEAR,path -> path.getName(2).toString().equals("String_Node_Str")));
  assetTypeManager.registerCoreAssetType(Shader.class,(AssetFactory<Shader,ShaderData>)HeadlessShader::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(Material.class,(AssetFactory<Material,MaterialData>)HeadlessMaterial::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(Mesh.class,(AssetFactory<Mesh,MeshData>)HeadlessMesh::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(SkeletalMesh.class,(AssetFactory<SkeletalMesh,SkeletalMeshData>)HeadlessSkeletalMesh::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(MeshAnimation.class,(AssetFactory<MeshAnimation,MeshAnimationData>)MeshAnimationImpl::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(Atlas.class,(AssetFactory<Atlas,AtlasData>)Atlas::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(Subtexture.class,(AssetFactory<Subtexture,SubtextureData>)Subtexture::new);
  assetTypeManager.switchEnvironment(context.get(ModuleManager.class).getEnvironment());
  context.put(ModuleAwareAssetTypeManager.class,assetTypeManager);
  context.put(AssetManager.class,assetTypeManager.getAssetManager());
  return assetTypeManager.getAssetManager();
}

Fixed version (ground truth):
@Override protected AssetManager setupAssetManager(){
  ModuleAwareAssetTypeManager assetTypeManager=new ModuleAwareAssetTypeManager();
  assetTypeManager.registerCoreAssetType(Prefab.class,PojoPrefab::new,false,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(BlockShape.class,BlockShapeImpl::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(BlockSounds.class,BlockSounds::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(BlockTile.class,BlockTile::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(BlockFamilyDefinition.class,BlockFamilyDefinition::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(StaticSound.class,NullSound::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(StreamingSound.class,NullStreamingSound::new,"String_Node_Str");
  BlockFamilyRegistry blockFamilyFactoryRegistry=new BlockFamilyRegistry();
  blockFamilyFactoryRegistry.setBlockFamily("String_Node_Str",HorizontalFamily.class);
  blockFamilyFactoryRegistry.setBlockFamily("String_Node_Str",AttachedToSurfaceFamily.class);
  assetTypeManager.registerCoreFormat(BlockFamilyDefinition.class,new BlockFamilyDefinitionFormat(assetTypeManager.getAssetManager(),blockFamilyFactoryRegistry));
  assetTypeManager.registerCoreAssetType(UISkin.class,UISkin::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(BehaviorTree.class,BehaviorTree::new,false,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(UIElement.class,UIElement::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(Font.class,FontImpl::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(Texture.class,HeadlessTexture::new,"String_Node_Str","String_Node_Str");
  assetTypeManager.registerCoreFormat(Texture.class,new PNGTextureFormat(Texture.FilterMode.NEAREST,path -> path.getName(2).toString().equals("String_Node_Str")));
  assetTypeManager.registerCoreFormat(Texture.class,new PNGTextureFormat(Texture.FilterMode.LINEAR,path -> path.getName(2).toString().equals("String_Node_Str")));
  assetTypeManager.registerCoreAssetType(Shader.class,HeadlessShader::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(Material.class,HeadlessMaterial::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(Mesh.class,HeadlessMesh::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(SkeletalMesh.class,HeadlessSkeletalMesh::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(MeshAnimation.class,MeshAnimationImpl::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(Atlas.class,Atlas::new,"String_Node_Str");
  assetTypeManager.registerCoreAssetType(Subtexture.class,Subtexture::new);
  assetTypeManager.switchEnvironment(context.get(ModuleManager.class).getEnvironment());
  context.put(ModuleAwareAssetTypeManager.class,assetTypeManager);
  context.put(AssetManager.class,assetTypeManager.getAssetManager());
  return assetTypeManager.getAssetManager();
}