How to use hasSecurityLevelAccess?

I want to make a jira plugin but, I’m pretty new to java. Can anyone please tell me how to use hasSecurityLevelAccess() function from com.atlassian.jira.issue.security.IssueSecuritySchemeManager?

I just need a simple working example to understand how can I use it inside my code?