LRDOCS-856 Add check to SourceFormatter