Analyze a private field and make it readonly