Since moving to Eclipse frontend doesn't really emulates incomplete semantic.
Usages of this method should be removed and tests with .noSemantic() should be added to clarify
that rules are not behaving unexpectedly in case of incomplete semantic.
since SonarJava 5.12 - Use key of InputFile instead, using DefaultJavaFileScannerContext.getInputFile().
WARNING: Can not be removed as long as SonarSecurity version delivered with LTS 7.9 is still using it.