return TreeUtils.elementFromDeclaration((VariableTree) tree);
}
if (tree instanceof ClassTree) {
return TreeUtils.elementFromDeclaration((ClassTree) tree);
}
throw new JavascriptClassGenerationException("none", "Unexpected node type:" + tree.getClass() + "," + tree.getKind());
}