I wanted to clarify if I understand correctly that the visibility of the separator is not controlled, if it is set, it will be set and there is no possibility to change it. If so, in this case, it would be very important to have the ability to control the visibility of the separator.
As is the case with me, I have described several menu items after the separator, but they are displayed under certain conditions (e.g., exceptions for file extensions, files, directories, etc.) and are not available in this context. Therefore, I would like to be able to control the separator itself.

I wanted to clarify if I understand correctly that the visibility of the separator is not controlled, if it is set, it will be set and there is no possibility to change it. If so, in this case, it would be very important to have the ability to control the visibility of the separator.
As is the case with me, I have described several menu items after the separator, but they are displayed under certain conditions (e.g., exceptions for file extensions, files, directories, etc.) and are not available in this context. Therefore, I would like to be able to control the separator itself.