Keep defined accessibility modifier in source generation