boolean (@NotNull Editor editor, int offset) { Document document = editor.getDocument(); CharSequence docChars = document.getCharsSequence(); int i = CharArrayUtil.lastIndexOf(docChars, "/**", offset); if (i >= 0) { i = CharArrayUtil.indexOf(docChars, "*/", i); return i > offset; } return false; }