@NotNull public KotlinType safeGetType( @NotNull LexicalScope scope, @NotNull KtExpression expression, @NotNull KotlinType expectedType, @NotNull DataFlowInfo dataFlowInfo, @NotNull BindingTrace trace) { KotlinType type = getType(scope, expression, expectedType, dataFlowInfo, trace); return type != null ? type : ErrorUtils.createErrorType("Type for " + expression.getText()); }