Physical coordinates of 0,0 editor and hover
已回答
As a user is reading code we would like to display unsolicited input based on the user fixations. Assume I have a way of getting the pixel location a user is looking at. Here are my questions.
1) Given an x y on the screen, can I find what elements are at or near that XY. I would expect to write a plugin that allows me to put some messages up when I want to without user input.
2) If I want to use existing features like all references, where is this method used? Is all that information available?
I have a basic plugin that allows me to get the position of the carat?

请先登录再写评论。
1. You can register mouse listeners for the Editor using Editor.addEditorMouseListener(@NotNull EditorMouseListener listener) and Editor.addEditorMouseMotionListener(@NotNull EditorMouseMotionListener listener) which will give you access to the EditorMouseEvent.
2. Having the PsiElement, you can access its references with ReferenceProvidersRegistry.getReferencesFromProviders(@NotNull PsiElement context)