Add matching getter for classes with setters.