public static List getDirectRelationsForConcept(Module module, LogicObject concept) {
    { Object old$Module$000 = Stella.$MODULE$.get();
      Object old$Context$000 = Stella.$CONTEXT$.get();

      try {
        Native.setSpecial(Stella.$MODULE$, module);
        Native.setSpecial(Stella.$CONTEXT$, ((Module)(Stella.$MODULE$.get())));
        { Module module000 = edu.isi.powerloom.PLI.getHomeModule(concept);
          List allrelations = GuiServer.getAllRelations(module000);
          List result = List.newList();

          { Description relation = null;
            Cons iter000 = allrelations.theConsList;
            Cons collect000 = null;

            for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
              relation = ((Description)(iter000.value));
              if (concept == edu.isi.powerloom.PLI.getDomain(relation)) {
                if (collect000 == null) {
                  {
                    collect000 = Cons.cons(relation, Stella.NIL);
                    if (result.theConsList == Stella.NIL) {
                      result.theConsList = collect000;
                    }
                    else {
                      Cons.addConsToEndOfConsList(result.theConsList, collect000);
                    }
                  }
                }
                else {
                  {
                    collect000.rest = Cons.cons(relation, Stella.NIL);
                    collect000 = collect000.rest;
                  }
                }
              }
            }
          }
          return (result);
        }

      } finally {
        Stella.$CONTEXT$.set(old$Context$000);
        Stella.$MODULE$.set(old$Module$000);
      }
    }
  }