Accessors detection for private fields is improved (#12598).

Change-Id: Ic724111886e93af1557e4964d47b00f733b7e8a6