boolean (Editor editor, DataContext dataContext, EditorActionHandler originalHandler) { if (HandlerUtils.isReadOnly(editor)) { return false; } int caretOffset = editor.getCaretModel().getOffset(); if (caretOffset < 1) return false; if (handleBetweenSquareBraces(editor, caretOffset, dataContext, originalHandler)) { return true; } if (handleInString(editor, caretOffset, dataContext, originalHandler)) { return true; } return false; }