String (String inspectionId, @Nullable String originalText) { if (originalText == null) { return getPrefix() + inspectionId + getSuffix() + "\n"; } else if (inspectionId.equals(XmlSuppressableInspectionTool.ALL)) { final int pos = originalText.indexOf(getPrefix()); return originalText.substring(0, pos) + getPrefix() + inspectionId + getSuffix() + "\n"; } return StringUtil.replace(originalText, getSuffix(), ", " + inspectionId + getSuffix()); }