From 774de2a61be6e9adc91cf808995f808f37c2814a Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Tue, 24 Dec 2019 12:47:57 +0700 Subject: [PATCH] OptionalIsPresentFix: remove problem type check to avoid DFA in write action Fixes EA-220101 - F: PsiScopesUtil.setupAndRunProcessor GitOrigin-RevId: 333593d5db77038a65642f62841f34a7ef40d35d --- .../com/intellij/codeInspection/OptionalIsPresentInspection.java | 1 - 1 file changed, 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/codeInspection/OptionalIsPresentInspection.java b/java/java-impl/src/com/intellij/codeInspection/OptionalIsPresentInspection.java index e16cbdbf50a6..733a8454c00e 100644 --- a/java/java-impl/src/com/intellij/codeInspection/OptionalIsPresentInspection.java +++ b/java/java-impl/src/com/intellij/codeInspection/OptionalIsPresentInspection.java @@ -287,7 +287,6 @@ public class OptionalIsPresentInspection extends AbstractBaseJavaLocalInspection else { return; } - if (myScenario.getProblemType(optionalRef, thenElement, elseElement) == ProblemType.NONE) return; PsiElementFactory factory = JavaPsiFacade.getElementFactory(project); CommentTracker ct = new CommentTracker(); String replacementText = myScenario.generateReplacement(factory, ct, optionalRef, thenElement, elseElement);