private void checkProperty(JetProperty property, PropertyDescriptor propertyDescriptor) {
   for (JetPropertyAccessor accessor : property.getAccessors()) {
     PropertyAccessorDescriptor accessorDescriptor =
         accessor.isGetter() ? propertyDescriptor.getGetter() : propertyDescriptor.getSetter();
     assert accessorDescriptor != null;
     checkFunction(accessor, accessorDescriptor.getReturnType());
   }
 }
Example #2
0
 private static boolean isDefaultAccessor(
     @Nullable PropertyAccessorDescriptor accessorDescriptor) {
   return accessorDescriptor == null || accessorDescriptor.isDefault();
 }