I'm trying to find any guideline how to intercept query execution in SQL Server Management Studio.

For example: I want to check query for `WHERE` clause after "Execute" button click.  

I already created add on in VS19 with VSIX project.  

I want to stop the query if it have `WHERE` clause in it , only for my own login and only from SQL Server Management Studio.  

Should I catch button click, or can it be done by interception of inner SSMS commands?

Any advice will be appreciated.