findElementsAndOrigins

Finds symbols which satisfy the acceptor visible in the passed scope. The method returns a Map keyed by the
found Elements. Each Element is mapped to the closest Scope which introduced the Element. For example, a field declared
by an outer class will map to that outer class' scope. An accessible field inherited from outer class' superclass
will also map to the outer class' scope. The caller can then determine, based on Element.getEnclosingElement() and
the mapped Scope whether the symbol is directly declared, or inherited. Non-member symbols (variables, parameters, try resources, ...)
map to Scope of their defining Method.

If an Element from outer Scope is hidden by a similar Element
in inner scope, only the Element visible to the passed Scope is returned. For example, if both the starting (inner) class and its outer class
define method m(), only InnerClass.m() will be returned.

isLocal

Returns true if the element is declared (directly or indirectly) local
to a method or variable initializer. Also true for fields of inner
classes which are in turn local to a method or variable initializer.

isErroneous

Checks whether 'e' contains error or is missing. If the passed element is null
it's assumed the element could not be resolved and this method returns true. Otherwise,
the element's type kind is checked against error constants and finally the erroneous
state of the element is checked.

findElement

Looks up the given Java element.
The elementDescription format is as follows:

for type (class, enum, interface or annotation type)

the FQN of the type

for field or enum constant

the FQN of the enclosing type.field name

for method

the FQN of the enclosing type.method name(comma separated parameter types)
The parameter types may include type parameters, but these are ignored. The last parameter type can use ellipsis (...) to denote vararg method.

for constructor

the FQN of the enclosing type.simple name of enclosing type(comma separated parameter types)
See method format for more details on parameter types.

Parameters:

elementDescription - the description of the element that should be checked for existence