ASTNode (final Block block) { if (block instanceof JavaBlock) { return ((JavaBlock)block).getFirstTreeNode(); } if (block instanceof LeafBlock) { return ((LeafBlock)block).getTreeNode(); } if (block instanceof CStyleCommentBlock) { return ((CStyleCommentBlock)block).getNode(); } return null; }