boolean matchRequiredSubstrings(@NotNull String line) {
    int ind = 0;
    for (String required : myRequiredOrderedSubstrings) {
      int nextInd = line.indexOf(required, ind);
      if (nextInd < 0) {
        return false;
      }
      ind = nextInd + required.length();
    }
    return true;
  }
boolean matchRequiredSubstrings(@NotNull String line)