[#3392] Call setAccessible(true) only if really needed