remove unchecked for-in loop from detectIndentation