diff --git a/platform/testFramework/testSrc/com/intellij/testFramework/propertyBased/InvokeIntention.java b/platform/testFramework/testSrc/com/intellij/testFramework/propertyBased/InvokeIntention.java index f7dde2ad182e..edae4600fad4 100644 --- a/platform/testFramework/testSrc/com/intellij/testFramework/propertyBased/InvokeIntention.java +++ b/platform/testFramework/testSrc/com/intellij/testFramework/propertyBased/InvokeIntention.java @@ -90,7 +90,7 @@ public class InvokeIntention extends ActionOnRange { myInvocationLog += ", invoked '" + intention.getText() + "'"; String intentionString = intention.toString(); - boolean checkComments = myPolicy.checkComments(intention) && PsiTreeUtil.getParentOfType(file.findElementAt(offset), PsiComment.class) == null; + boolean checkComments = myPolicy.checkComments(intention) && PsiTreeUtil.getParentOfType(file.findElementAt(offset), PsiComment.class, false) == null; Collection comments = checkComments ? extractCommentsReformattedToSingleWhitespace(file) : Collections.emptyList();