Boolean ( PropertyDescriptor descriptor, DiagnosticCollector collector ) { validateCallable(descriptor, collector); PropertyGetterDescriptor getter = descriptor.getGetter(); if (getter != null) { assertEqualTypes(getter, collector, "getter return type", descriptor.getType(), getter.getReturnType()); validateAccessor(descriptor, collector, getter); } PropertySetterDescriptor setter = descriptor.getSetter(); if (setter != null) { assertEquals(setter, collector, "setter parameter count", 1, setter.getValueParameters().size()); assertEqualTypes(setter, collector, "setter parameter type", descriptor.getType(), setter.getValueParameters().get(0).getType()); assertEquals(setter, collector, "corresponding property", descriptor, setter.getCorrespondingProperty()); } return true; }