code: public final boolean overrideAllowed(final File file) {
          if (isOverride()) {
              // In general it's allowed to recreate existing files
              if (overrideExclude == null) {
                  return true;
              } else {
                  return !getOverrideExcludeFilter().accept(file);
              }
          } else {
              // It's NOT allowed to recreate existing files
              if (overrideInclude == null) {
                  return false;
              } else {
                  return getOverrideIncludeFilter().accept(file);
              }
          }
      }
docs: Checks if a file can be overridden.
  
  @param file
  File to check against the exclude condition.
  
  @return TRUE if the file can be overridden.