LPS-39508 - Add check to SourceFormatter