Mark Seam In Source Code

Hello. Please tell me which file contains the method for displaying seams?
I need the code itself that is responsible for displaying the mark of the seams with a red highlight.
In python, only the call of this function itself is carried out and no parameters can be changed there. Maybe you can create your own assembly.