boolean (ASTNode node) { ASTNode prevLeaf = TreeUtil.prevLeaf(node); if (prevLeaf != null && prevLeaf.getElementType() == TokenType.WHITE_SPACE) { prevLeaf = TreeUtil.prevLeaf(prevLeaf); } return prevLeaf != null && prevLeaf.getElementType() == JavaTokenType.FINAL_KEYWORD; }