String (PsiElement @NotNull ... elements) { StringBuilder textBuilder = new StringBuilder(); for (PsiElement element : elements) { textBuilder.append(StringUtil.trimStart(element.getText(), "//").trim()); } String text = textBuilder.toString(); text = StringUtil.trimStart(text, "@").trim(); int secondCommentIdx = text.indexOf("//"); if (secondCommentIdx > 0) { text = text.substring(0, secondCommentIdx); } text = StringUtil.trimStart(text, SuppressionUtilCore.SUPPRESS_INSPECTIONS_TAG_NAME).trim(); List<String> ids = new ArrayList<>(StringUtil.split(text, ",")); int i = ArrayUtil.find(ids.toArray(), myID); if (i==-1) return null; ids.remove(i); return StringUtil.join(ids, ","); }