def METHOD_NAME(self, callingWindow, srcContext, mainItem):
    if srcContext not in ('fittingModule', 'projectedModule') or self.mainFrame.getActiveFit() is None:
        return False
    if mainItem is None or mainItem.isEmpty:
        return False
    self.mod = mainItem
    self.context = srcContext
    return self.mod.item.group.name in ("Precursor Weapon", "Mutadaptive Remote Armor Repairer")