property testing: don't check comments fixes

This commit is contained in:
Anna.Kozlova
2017-12-04 12:57:43 +01:00
parent ec7f907e7f
commit 1a29f95a65
@@ -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<String> comments = checkComments
? extractCommentsReformattedToSingleWhitespace(file)
: Collections.emptyList();