// ========================================================================
// Private methods
private void setPosition(MAnnotation target, Tag tag) {
//add source position info, if available
SourcePosition pos = tag.position();
if (pos != null) {
MSourcePosition mpos = target.createSourcePosition();
mpos.setLine(pos.line());
mpos.setColumn(pos.column());
if (pos.file() != null) mpos.setSourceURI(pos.file().toURI());
}
}