Report error if the entityname reference in the import declaration is us...

Report error if the entityname reference in the import declaration is using private module
we need to sort that because the text is patched correctly and we don't need to track partial edits. The asynchronous output could make declaration in reverse or random order to be in importDeclarations list