public ExpectedHighlightingData(
     @NotNull final Document document,
     final boolean checkWarnings,
     final boolean checkWeakWarnings,
     final boolean checkInfos,
     @Nullable final PsiFile file) {
   this(document, file);
   if (checkWarnings) checkWarnings();
   if (checkWeakWarnings) checkWeakWarnings();
   if (checkInfos) checkInfos();
 }
 public ExpectedHighlightingData(
     @NotNull Document document,
     boolean checkWarnings,
     boolean checkWeakWarnings,
     boolean checkInfos,
     boolean ignoreExtraHighlighting,
     @Nullable PsiFile file) {
   this(document, file);
   myIgnoreExtraHighlighting = ignoreExtraHighlighting;
   if (checkWarnings) checkWarnings();
   if (checkWeakWarnings) checkWeakWarnings();
   if (checkInfos) checkInfos();
 }