String (@NotNull Presentation presentation) { String text = presentation.getText(); if (text == null) return null; Matcher matcher = INNER_GROUP_WITH_IDS.matcher(text); if (matcher.matches()) return matcher.group(1); return text; }