private static boolean isUnderScope(@NotNull RecursiveFilePathSet scope, @NotNull Change change) {
    FilePath beforePath = ChangesUtil.getBeforePath(change);
    if (beforePath != null &&
        scope.hasAncestor(beforePath)) {
      return true;
    }

    FilePath afterPath = ChangesUtil.getAfterPath(change);
    if (afterPath != null &&
        !ChangesUtil.equalsCaseSensitive(beforePath, afterPath) &&
        scope.hasAncestor(afterPath)) {
      return true;
    }

    return false;
  }
private static boolean isUnderScope(@NotNull RecursiveFilePathSet scope, @NotNull Change change)