Support trait for standard plain classes that encapsulate private or protected fields through getters/setters