boolean (@NotNull IRootContainer rootContainer, @NotNull FormInspectionTool formInspectionTool, String componentId) { String shortName = formInspectionTool.getShortName(); if (rootContainer.isInspectionSuppressed(shortName, componentId)) return true; if (formInspectionTool instanceof LocalInspectionTool) { String alternativeID = ((LocalInspectionTool)formInspectionTool).getAlternativeID(); if (!Objects.equals(alternativeID, shortName)) { return rootContainer.isInspectionSuppressed(alternativeID, componentId); } } return false; }