If you auto refactored this you can turn the "auto public" off by pressing cmd alt + c twice