diff --git a/platform/testFramework/src/com/intellij/testFramework/propertyBased/InvokeIntention.java b/platform/testFramework/src/com/intellij/testFramework/propertyBased/InvokeIntention.java index 5c6eafac17ac..1b1391c15caf 100644 --- a/platform/testFramework/src/com/intellij/testFramework/propertyBased/InvokeIntention.java +++ b/platform/testFramework/src/com/intellij/testFramework/propertyBased/InvokeIntention.java @@ -36,7 +36,6 @@ import com.intellij.openapi.util.TextRange; import com.intellij.openapi.util.registry.Registry; import com.intellij.openapi.util.text.StringUtil; import com.intellij.psi.*; -import com.intellij.psi.impl.DebugUtil; import com.intellij.psi.util.PsiTreeUtil; import com.intellij.psi.util.PsiUtilBase; import com.intellij.testFramework.PsiTestUtil; @@ -89,19 +88,11 @@ public class InvokeIntention extends ActionOnFile { PsiDocumentManager.getInstance(project).commitAllDocuments(); FileViewProvider viewProvider = getFile().getViewProvider(); - String filesBefore = viewProvider.getAllFiles().toString(); boolean containsErrorElements = MadTestingUtil.containsErrorElements(viewProvider); - String treesBefore = viewProvider.getAllFiles().stream().map(f -> DebugUtil.psiToString(f, false)).collect( - Collectors.joining("\n\n")) - + "\n\n hasErrorPSI=" + containsErrorElements - + "\n hasErrorPSI2=" + MadTestingUtil.containsErrorElements(viewProvider) - + "\n filesBefore=" + filesBefore; - List errors = highlightErrors(project, editor); boolean hasErrors = !errors.isEmpty() || containsErrorElements; - PsiFile file = PsiUtilBase.getPsiFileInEditor(editor, getProject()); assert file != null; List intentions = getAvailableIntentions(editor, file); @@ -158,13 +149,6 @@ public class InvokeIntention extends ActionOnFile { message += ".\nIf it's by design that " + intentionString + " doesn't change source files, " + "it should return false from 'startInWriteAction'"; } - message += "\n Debug info: " + treesBefore + "\n\nafter:" + - file.getViewProvider().getAllFiles().stream().map( - f -> - DebugUtil.psiToString(f, false) + - "\n\n" + - SyntaxTraverser.psiTraverser(file).filter(PsiErrorElement.class).toList() - ).collect(Collectors.joining("\n\n")); throw new AssertionError(message); }