@Override
      public void caretRemoved(@NotNull CaretEvent e) {
        if (!isInteractiveModeSupported()) {
          finishTemplate(false);
        }
      }
@Override
      public void caretRemoved(@NotNull CaretEvent e)