void ( @NotNull DeclarationDescriptor descriptor, @Nullable KotlinType type, @NotNull DiagnosticCollector collector ) { if (type == null) { report(collector, descriptor, "No type"); return; } if (!allowErrorTypes && KotlinTypeKt.isError(type)) { report(collector, descriptor, "Error type: " + type); return; } validateScope(descriptor, type.getMemberScope(), collector); }