@NotNull
  public static IgnoredFileBean ignoreUnderDirectory(@NotNull @NlsSafe String path, @Nullable Project p) {
    String correctedPath = (path.endsWith("/") || path.endsWith(File.separator)) ? path : path + "/";
    return new IgnoredFileBean(correctedPath, IgnoreSettingsType.UNDER_DIR, p);
  }
@NotNull
  public static IgnoredFileBean ignoreUnderDirectory(@NotNull @NlsSafe String path, @Nullable Project p)