locate can be implemented that way without impacting jparsec codebase:

	public static <T extends Node> Parser<T> locate(Parser<T> parser) {
		return Parsers.array(INDEX, parser, INDEX).map(new Map<Object[], T> () {
			@SuppressWarnings("unchecked")
			@Override
			public T map(Object[] from) {
				T obj = (T) from[1];
				obj.setInfo(new SourceInfo((Integer) from[0], (Integer) from[2]));
				return obj;
			}});
	}

My pull request becomes then irrelevant. Just maybe add Parsers.MODULE to fit my needs.