boolean containsCloseRealWhiteSpace(@NotNull ShredInfo shredInfo, final boolean after) {
    Ref<Boolean> result = Ref.create(false);
    myInstance.enumerate(myHost, (file, shreds) -> {
      if (shredInfo.shredIndex >= shreds.size()) return;
      PsiLanguageInjectionHost.Shred shred = shreds.get(shredInfo.shredIndex);
      String shredText = extractShredText(shred);
      if (shredText == null) return;
      int whiteSpaceIndex = after ? shredInfo.symbolIndex + 1 : shredInfo.symbolIndex - 1;
      if (whiteSpaceIndex < 0 || whiteSpaceIndex >= shredText.length()) return;
      result.set(shredText.charAt(whiteSpaceIndex) == ' ');
    });
    return result.get();
  }
boolean containsCloseRealWhiteSpace(@NotNull ShredInfo shredInfo, final boolean after)