@NotNull
  private static CodeFragmentKind getKind(@NotNull EvaluationMode mode) {
    return switch (mode) {
      case EXPRESSION -> CodeFragmentKind.EXPRESSION;
      case CODE_FRAGMENT -> CodeFragmentKind.CODE_BLOCK;
    };
  }
@NotNull
  private static CodeFragmentKind getKind(@NotNull EvaluationMode mode)