ASTNode (int role) { LOG.assertTrue(ChildRole.isUnique(role)); if (role == ChildRole.MODIFIER_LIST) { return findChildByType(JavaElementType.MODIFIER_LIST); } else if (role == ChildRole.NAME) { return findChildByType(JavaTokenType.IDENTIFIER); } else if (role == ChildRole.TYPE) { return findChildByType(JavaElementType.TYPE); } else { return null; } }