* @return migrated reference or {@code null} if reference cannot be migrated
*/
private CodeReference migrateCubeReference(CodeReference reference) {
FilePosition oldStartPosition = reference.getReferenceStart();
FilePosition oldEndPosition = reference.getReferenceEnd();
LineNumberAndColumn newStartPosition = positionMigrator.migrateToNow(
oldStartPosition.getLineNumber(), oldStartPosition.getColumn());
LineNumberAndColumn newEndPosition = positionMigrator.migrateToNow(
oldEndPosition.getLineNumber(), oldEndPosition.getColumn());
int newLength = newEndPosition.column - newStartPosition.column;
int oldLength = oldEndPosition.getColumn() - oldStartPosition.getColumn();
if (newStartPosition.lineNumber != newEndPosition.lineNumber
|| newLength != oldLength || newLength < 0) {