Use of this static method (previously following singleton pattern) is strongly discouraged
and will be removed in a future version. For now, it has been modified to return a new instance to
prevent the IllegalStateException being thrown (as reported in #2547), allowing it to be called multiple times.
Similarly to solveType this should eventually disappear as the symbol resolution logic should be more general
and do not be specific to JavaParser classes like in this case.