GrClosureType (@NotNull GrFunctionalExpression expression, boolean shouldInferTypeParameters) { final GrSignature signature = GrClosureSignatureUtil.createSignature(expression); final GlobalSearchScope resolveScope = expression.getResolveScope(); final JavaPsiFacade facade = JavaPsiFacade.getInstance(expression.getProject()); return create(Collections.singletonList(signature), resolveScope, facade, LanguageLevel.JDK_1_5, shouldInferTypeParameters); }