@Override public void apply(TreePath path, Context context, DescriptionListener listener) { RefasterScanner.create(this, listener) .scan(path, prepareContext(context, (JCCompilationUnit) path.getCompilationUnit())); }
private JCCompilationUnit toUnit(Element element) { TreePath path = trees == null ? null : trees.getPath(element); if (path == null) return null; return (JCCompilationUnit) path.getCompilationUnit(); }