* @param extensions
   * @return String
   */
  public static String findFileInLoadPath(String file, Cons extensions) {
    { String expandedfile = file;

      if (extensions == null) {
        extensions = Stella.$STELLA_FILE_EXTENSIONS$;
      }
      { Stella_Object dir = null;
        Cons iter000 = Cons.cons(StringWrapper.wrapString(""), Stella.$FILE_LOAD_PATH$);

        for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
          dir = iter000.value;
          try {
            expandedfile = StringWrapper.unwrapString(((StringWrapper)(dir))) + file;
            if (Stella.probeFileP(expandedfile)) {
              return (expandedfile);
            }
            { StringWrapper ext = null;
              Cons iter001 = extensions;

              for (;!(iter001 == Stella.NIL); iter001 = iter001.rest) {
                ext = ((StringWrapper)(iter001.value));
                expandedfile = StringWrapper.unwrapString(((StringWrapper)(dir))) + file + ext.wrapperValue;
                if (Stella.probeFileP(expandedfile)) {
                  return (expandedfile);
                }
              }
            }
          } catch (java.lang.Exception e) {
            e = e;
          }
        }
      }
      return (null);
    }
  }