Program: 161323
Project: 161323
Buggy source:
private void sendInterModAPIMessages(){
  ItemIngot ingotGeneric=BigReactors.ingotGeneric;
  ItemStack yelloriteOre=new ItemStack(BigReactors.blockYelloriteOre,1);
  final int YELLORIUM=0;
  String[] names={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  ItemStack[] ingots=new ItemStack[names.length];
  ItemStack[] dusts=new ItemStack[names.length];
  for (int i=0; i < names.length; i++) {
    ingots[i]=ingotGeneric.getIngotItem(names[i]);
    dusts[i]=ingotGeneric.getDustItem(names[i]);
  }
  ItemStack doubledYelloriumDust=null;
  if (dusts[YELLORIUM] != null) {
    doubledYelloriumDust=dusts[YELLORIUM].copy();
    doubledYelloriumDust.stackSize=2;
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    ItemStack sandStack=new ItemStack(Blocks.sand,1);
    ItemStack doubleYellorium=ingots[YELLORIUM].copy();
    doubleYellorium.stackSize=2;
    if (yelloriteOre != null && ingots[YELLORIUM] != null) {
      ThermalExpansionHelper.addFurnaceRecipe(400,yelloriteOre,ingots[YELLORIUM]);
      ThermalExpansionHelper.addSmelterRecipe(1600,yelloriteOre,sandStack,doubleYellorium);
    }
    if (yelloriteOre != null && doubledYelloriumDust != null) {
      ThermalExpansionHelper.addPulverizerRecipe(4000,yelloriteOre,doubledYelloriumDust);
    }
    if (doubledYelloriumDust != null && doubleYellorium != null) {
      ThermalExpansionHelper.addSmelterRecipe(200,doubledYelloriumDust,sandStack,doubleYellorium);
    }
    for (int i=0; i < ingots.length; i++) {
      if (ingots[i] == null || dusts[i] == null) {
        continue;
      }
      ThermalExpansionHelper.addPulverizerRecipe(2400,ingots[i],dusts[i]);
      ThermalExpansionHelper.addSmelterRecipe(200,doubledYelloriumDust,sandStack,doubleYellorium);
      ItemStack doubleDust=dusts[i].copy();
      doubleDust.stackSize=2;
      ItemStack doubleIngot=ingots[i].copy();
      doubleIngot.stackSize=2;
      ThermalExpansionHelper.addSmelterRecipe(200,doubleDust,sandStack,doubleIngot);
    }
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    IMCHelper.MFR.addOreToMiningLaserFocus(yelloriteOre,2);
    IMCHelper.MFR.setMiningLaserFocusPreferredOre(yelloriteOre,9);
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    if (yelloriteOre != null && doubledYelloriumDust != null) {
      IMCHelper.AE2.addGrinderRecipe(yelloriteOre,doubledYelloriumDust,4);
    }
    for (int i=0; i < ingots.length; i++) {
      if (ingots[i] == null || dusts[i] == null) {
        continue;
      }
      IMCHelper.AE2.addGrinderRecipe(ingots[i],dusts[i],2);
    }
  }
}

Fixed version (ground truth):
private void sendInterModAPIMessages(){
  ItemIngot ingotGeneric=BigReactors.ingotGeneric;
  ItemStack yelloriteOre=new ItemStack(BigReactors.blockYelloriteOre,1);
  final int YELLORIUM=0;
  String[] names={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  ItemStack[] ingots=new ItemStack[names.length];
  ItemStack[] dusts=new ItemStack[names.length];
  for (int i=0; i < names.length; i++) {
    ingots[i]=ingotGeneric.getIngotItem(names[i]);
    dusts[i]=ingotGeneric.getDustItem(names[i]);
  }
  ItemStack doubledYelloriumDust=null;
  if (dusts[YELLORIUM] != null) {
    doubledYelloriumDust=dusts[YELLORIUM].copy();
    doubledYelloriumDust.stackSize=2;
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    ItemStack sandStack=new ItemStack(Blocks.sand,1);
    ItemStack doubleYellorium=ingots[YELLORIUM].copy();
    doubleYellorium.stackSize=2;
    if (ingots[YELLORIUM] != null) {
      ThermalExpansionHelper.addFurnaceRecipe(400,yelloriteOre,ingots[YELLORIUM]);
      ThermalExpansionHelper.addSmelterRecipe(1600,yelloriteOre,sandStack,doubleYellorium);
    }
    if (doubledYelloriumDust != null) {
      ThermalExpansionHelper.addPulverizerRecipe(4000,yelloriteOre,doubledYelloriumDust);
    }
    if (doubledYelloriumDust != null) {
      ThermalExpansionHelper.addSmelterRecipe(200,doubledYelloriumDust,sandStack,doubleYellorium);
    }
    for (int i=0; i < ingots.length; i++) {
      if (ingots[i] == null || dusts[i] == null) {
        continue;
      }
      ThermalExpansionHelper.addPulverizerRecipe(2400,ingots[i],dusts[i]);
      ThermalExpansionHelper.addSmelterRecipe(200,doubledYelloriumDust,sandStack,doubleYellorium);
      ItemStack doubleDust=dusts[i].copy();
      doubleDust.stackSize=2;
      ItemStack doubleIngot=ingots[i].copy();
      doubleIngot.stackSize=2;
      ThermalExpansionHelper.addSmelterRecipe(200,doubleDust,sandStack,doubleIngot);
    }
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    IMCHelper.MFR.addOreToMiningLaserFocus(yelloriteOre,2);
    IMCHelper.MFR.setMiningLaserFocusPreferredOre(yelloriteOre,9);
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    if (doubledYelloriumDust != null) {
      IMCHelper.AE2.addGrinderRecipe(yelloriteOre,doubledYelloriumDust,4);
    }
    for (int i=0; i < ingots.length; i++) {
      if (ingots[i] == null || dusts[i] == null) {
        continue;
      }
      IMCHelper.AE2.addGrinderRecipe(ingots[i],dusts[i],2);
    }
  }
}