private void registerEnd(final CommonTree antlrTree) {
		final int count = antlrTree.getChildCount();

		int i = count - 1;
		while (i >= 0) {
			final CommonTree antlrChild = (CommonTree) antlrTree.getChild(i);
			final CommonKoopaToken commonKoopaToken = (CommonKoopaToken) antlrChild
					.getToken();
			final Token koopaToken = commonKoopaToken.getKoopaToken();

			if (koopaToken != null && koopaToken.getEnd() != null) {
				((CommonKoopaToken) antlrTree.getToken()).getKoopaToken()
						.setEnd(koopaToken.getEnd());
				break;
			}

			i -= 1;
		}
	}