void (final int offset, final @NotNull CharSequence s) { try { myTextComponent.getDocument().insertString(offset, s.toString(), null); } catch (BadLocationException e) { throw new RuntimeException(e); } }