@NotNull
  public static IgnoredFileBean ignoreFile(@NotNull VirtualFile file, @Nullable Project p) {
    if (file.isDirectory()) {
      return ignoreUnderDirectory(file.getPath(), p);
    }

    return ignoreFile(file.getPath(), p);
  }
@NotNull
  public static IgnoredFileBean ignoreFile(@NotNull VirtualFile file, @Nullable Project p)