MV Which one of these lines says "Open list with upgrades"?(YEP_ItemUpgradeSlots)

As I'm trying to add my own commands I'd like to know where and how this one tells the script what to do next, so-
Which one of these lines says "Open list with upgrades"?

Yanfly.IUS.Window_ItemActionCommand_addCustomCommandsD =
Window_ItemActionCommand.prototype.addCustomCommandsD;
Window_ItemActionCommand.prototype.addCustomCommandsD = function() {
Yanfly.IUS.Window_ItemActionCommand_addCustomCommandsD.call(this);
this.addUpgradeCommand();
};

Window_ItemActionCommand.prototype.addUpgradeCommand = function() {
if (Yanfly.Param.IUSUpgradeCmd === '') return;
if (!$gameSystem.itemUpgradeShow()) return;
if (!this._item) return;
this._item.upgradeSlots = this._item.upgradeSlots || 0;
if (this._item.upgradeSlots <= 0) return;
var enabled = DataManager.isIndependent(this._item);
if (eval(Yanfly.Param.IUSShowOnly) && !enabled) return;
if (!$gameSystem.itemUpgradeEnabled()) enabled = false;
var fmt = Yanfly.Param.IUSUpgradeCmd;
text = '\\i[' + this._item.iconIndex + ']';
if (this._item.textColor !== undefined) {
text += '\\c[' + this._item.textColor + ']';
}
text += this._item.name;
text = fmt.format(text);
this.addCommand(text, 'upgrade', enabled);

(lines 1048 - 1071)
the creation of the window is at 1171,
so what exactly do you want to to do?

as there is an command with "ALL", but without knowing what
you want to do is hard to give you a solution as it might not THAT
simple to just add a new command or new window, as that require
more coding, specially if it require rewire the function correctly.
the creation of the window is at 1171,
so what exactly do you want to to do?

as there is an command with "ALL", but without knowing what
you want to do is hard to give you a solution as it might not THAT
simple to just add a new command or new window, as that require
more coding, specially if it require rewire the function correctly.
This is already existing Yanfly's code which (based on my greenhorn observations) creates a button. What I would like to know is if there is a line that tells the button what to do. If there's not, would be so kind and tell me where in code I can find that?
I don't really use it, but the scene tells what buttons are there,
so the window can show it correctly.

from there, you can add it, but the scene needs to know it as well
for the buttons you want to place and what they do.

but while I don't use the plugin, I cannot really guide you, so if your clear,
advance coders (or people that knows YEP plugins) can guide you through it.

just adding commands can lead into errors.
create buttons is one thing, the location of the button is a different question.

so I don't know how the scene exactly look like and how it upgrades.

Original thread: https://forums.rpgmakerweb.com/threads/which-one-of-these-lines-says-open-list-with-upgrades-yep_itemupgradeslots.179461/