void (@Nullable RegExpOptions options, boolean skipMinus) { if (options == null) { return; } final String text = options.getText(); final int start = skipMinus ? 1 : 0; // skip '-' if necessary for (int i = start, length = text.length(); i < length; i++) { final int c = text.codePointAt(i); if (!Character.isBmpCodePoint(c) || !myLanguageHosts.supportsInlineOptionFlag((char)c, options)) { final int offset = options.getTextOffset() + i; myHolder.newAnnotation(HighlightSeverity.ERROR, RegExpBundle.message("error.unknown.inline.option.flag")) .range(new TextRange(offset, offset + 1)).create(); } } }