@Nullable
  ShredInfo getShredInfo(@NotNull String text) {
    if (myHost == null) return null;

    Ref<ShredInfo> result = Ref.create();
    myInstance.enumerate(myHost, (file, shreds) -> {
      Iterator<ShredInfo> shredsIterator = new ShredsIterator(shreds);
      int shredSymbolCounter = 0;
      ShredInfo nextShred = null;
      int elementOffset = calculateElementOffset(text);
      while (shredsIterator.hasNext() && shredSymbolCounter <= elementOffset) {
        nextShred = shredsIterator.next();
        if (nextShred.symbol == ' ') continue;
        shredSymbolCounter++;
      }
      result.set(nextShred);
    });
    return result.get();
  }
@Nullable
  ShredInfo getShredInfo(@NotNull String text)