private static <T> void addIfNotNull(@NotNull Collection<T> targetCollection, @Nullable T file) {
    if (file != null) {
      targetCollection.add(file);
    }
  }
private static <T> void addIfNotNull(@NotNull Collection<T> targetCollection, @Nullable T file)