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()); } }
private static boolean isDefaultAccessor( @Nullable PropertyAccessorDescriptor accessorDescriptor) { return accessorDescriptor == null || accessorDescriptor.isDefault(); }