@NotNull public AnnotationDescriptor createExtensionAnnotation() { return new AnnotationDescriptorImpl( getBuiltInClassByName(FQ_NAMES.extensionFunctionType.shortName()).getDefaultType(), Collections.<ValueParameterDescriptor, ConstantValue<?>>emptyMap(), SourceElement.NO_SOURCE); }
@NotNull public KotlinType getEnumType(@NotNull KotlinType argument) { Variance projectionType = Variance.INVARIANT; List<TypeProjectionImpl> types = Collections.singletonList(new TypeProjectionImpl(projectionType, argument)); return KotlinTypeImpl.create(Annotations.Companion.getEMPTY(), getEnum(), false, types); }