I am working on a plugin for a JVM language and I would need to use Java elements in this language. In particular I would start with auto-completion.
Should I call:
ReferenceProvidersRegistry#getReferencesFromProviders(PsiElement) from my CompletionContributor?
Which Java elements should I target to get the list of Java types (enum, classes and interfaces), for examples?