Fixed access to tree in class files when suggest to attach souces.
(cherry picked from commit 9ed19ef)