What to use other than GlobalInspectionContextImpl?
已回答
GlobalInspectionContextImpl has been annotated as ApiStatus.Internal, which in turn results in use during plugin development to show warnings indicating that the class and references to it and its methods as unstable.
What class should be used instead?
Looking into intellij-community, I don't see a way to inject my own implementation of GlobalInspectionContext, so that it would be used in lieu of GlobalInspectionContextImpl, since usages are hardcoded to the implementation, not the interface.
请先登录再写评论。
Solved: For me, a combination of CodeInspectionAction and InspectListener worked
What is your use case of using custom implementation here?
Hi Yann Cebron, using the combination of CodeInspectionAction and InspectListener eliminated the need for a custom implementation of GlobalInspectionContext.