I am trying to intercept foreground full re-index in Jira from within a Jira plugin. Is it possible to do so? If yes, how can I do it?

I am trying to intercept foreground full re-index in Jira from within a Jira plugin.
Is it possible to do so? If yes, how can I do it?

I believe you can intercept com.atlassian.jira.issue.index.DefaultIndexManager#doStopTheWorldReindex