RangeMarkerEx (@NonNls @NotNull String string) { int start = string.indexOf('['); assertTrue(start != -1); string = string.replace("[", ""); int end = string.indexOf(']'); assertTrue(end != -1); string = string.replace("]", ""); return createMarker(string, start, end); }