reject caching during resolve only inside lambda body (IDEA-138511)
[idea/community.git] / java / java-psi-api / src / com / intellij / psi / infos / MethodCandidateInfo.java
index 78a58fc8b70bd91d17eb194177ba401f5dfbafd1..7a87a8c6bb493e2a5a701616a4e68a8030a22f4f 100644 (file)
@@ -326,9 +326,6 @@ public class MethodCandidateInfo extends CandidateInfo{
 
 
   public static CurrentCandidateProperties getCurrentMethod(PsiElement context) {
-    if (isOverloadCheck()) {
-      ourOverloadGuard.prohibitResultCaching(ourOverloadGuard.currentStack().get(0));
-    }
     final Map<PsiElement, CurrentCandidateProperties> currentMethodCandidates = CURRENT_CANDIDATE.get();
     return currentMethodCandidates != null ? currentMethodCandidates.get(context) : null;
   }