Path to opened diagram from plugin

Hello!

How to fetch path to file of current opened diagram from Custom Linter Rules Plugin?

What do you want to use the file path for?

I need to check field FormKey value, it is have to point on existing file on disk.
Path to file is relative to current opened diagram path.