String name = type.getElementName().replace("$", "");
StringBuffer buffer = new StringBuffer(name);
buffer.replace(0, 1, Character.toString(Character.toUpperCase(name.charAt(0))));
name = buffer.toString();
ASTParser parser = ASTParser.newParser(source);
parser.setSource(document.get().toCharArray());
Program program = parser.createAST(new NullProgressMonitor());
// program.recordModifications();
// AST ast = program.getAST();
ISourceRange range = type.getSourceRange();
ASTNode node = program.getElementAt(range.getOffset());