JavaResolveResult (final PsiNewExpression newExpression, final PsiElement context) { return context == newExpression && !MethodCandidateInfo.isOverloadCheck(newExpression.getArgumentList()) ? CachedValuesManager.getCachedValue(newExpression, () -> new CachedValueProvider.Result<>( getStaticFactoryCandidateInfo(newExpression, newExpression), PsiModificationTracker.MODIFICATION_COUNT)) : getStaticFactoryCandidateInfo(newExpression, context); }