Added resolve to classes in the same file, when file is outside of sources #SCL-6911 Fixed