That menu is brought to you by the JUCE standalone wrapper. It simply calls the setStateInformation and getStateInformation.
This will work for a PGM plugin, if it inherits from foleys::MagicProcessor and if it’s not overriding setStateInformation and getStateInformation in your plugin (i.e. remove those two functions from the generated code).