Improved FormatEmptyLinesCommand to include interfaces