Do not generate private keyword when it is not needed