TextRange (@NotNull String text) { final Matcher m = TYPE_COMMENT_PATTERN.matcher(text); if (m.matches()) { final String hint = getTypeCommentValue(text); if (hint != null) { return TextRange.from(m.start(1), hint.length()); } } return null; }