@NotNull private static PropertyDescriptorImpl createErrorProperty() { PropertyDescriptorImpl descriptor = PropertyDescriptorImpl.create( ERROR_CLASS, Annotations.EMPTY, Modality.OPEN, Visibilities.INTERNAL, true, Name.special("<ERROR PROPERTY>"), CallableMemberDescriptor.Kind.DECLARATION, SourceElement.NO_SOURCE); descriptor.setType( ERROR_PROPERTY_TYPE, Collections.<TypeParameterDescriptor>emptyList(), ReceiverParameterDescriptor.NO_RECEIVER_PARAMETER, (JetType) null); return descriptor; }