Minor optimization to avoid including non-value-returning methods as possible getters