JBIDE-17911 Make "full tree" vs. "funtions and macro defs." configurable

for Freemarker outline plus some refactoring to avoid usage of
deprecated Prefence APIs.
I do not know because I have not written that code and I had no reason to get acquanted with this particular method. The intention behind the present commit was code formatting and some basic refactoring without any behavior change. Although I agree that `catch (Exception e)` is generally not a good practice, this particular issue is out of the present scope.