void (int startOffset, int endOffset, @NotNull Object message) { if (!isProperRange(startOffset, endOffset)) { throw new IllegalArgumentException("Invalid range specified: (" + startOffset + ", " + endOffset + "); " + message); } }