static ISourceRange createSourceRange(int offset, int end){ int length= end - offset + 1; if (length == 0) length= 1; return new SourceRange(Math.max(0, offset), length);
private static ISourceRange createSourceRange(ITextSelection ts){ return new SourceRange(ts.getOffset(), ts.getLength());
	static ISourceRange createSourceRange(int offset, int end){		int length= end - offset + 1;		if (length == 0) //to allow 0-length selection			length= 1;		return new SourceRange(Math.max(0, offset), length);	}