Revert "LPS-45885 Add check to SourceFormatter"

This reverts commit 088037138efd2c80562602e8e3475f0cf52be4ad.