private boolean isSubpath(@NotNull String path, String subpath) {
    subpath = ChooseByNamePopup.getTransformedPattern(subpath, myModel).stripTrailing();
    path = FileUtilRt.toSystemIndependentName(path);
    subpath = FileUtilRt.toSystemIndependentName(subpath);
    return path.endsWith(subpath);
  }
private boolean isSubpath(@NotNull String path, String subpath)