diff --git a/java/java-impl/src/com/intellij/codeInsight/lookup/VariableLookupItem.java b/java/java-impl/src/com/intellij/codeInsight/lookup/VariableLookupItem.java index 736adf8b6906..86bacdf2da23 100644 --- a/java/java-impl/src/com/intellij/codeInsight/lookup/VariableLookupItem.java +++ b/java/java-impl/src/com/intellij/codeInsight/lookup/VariableLookupItem.java @@ -254,6 +254,7 @@ public class VariableLookupItem extends LookupItem implements Typed if (ref != null && ref.getParent() instanceof PsiMethodCallExpression) { PsiExpressionList argList = ((PsiMethodCallExpression)ref.getParent()).getArgumentList(); if (argList.getExpressionCount() == 0) { + PsiDocumentManager.getInstance(argList.getProject()).doPostponedOperationsAndUnblockDocument(context.getDocument()); context.getDocument().deleteString(argList.getTextRange().getStartOffset(), argList.getTextRange().getEndOffset()); } }