classifyRole

open fun classifyRole(name: Node): NameRole(source)

What is the Role of the given name? Does it represent a Declaration or a Reference?

This classification is purely syntactical, i.e., it does not require symbol resolution. For this reason in the future this could be moved to the core module of JavaParser.