boolean (@Nullable XmlTag tag) { if (tag == null) { return false; } ImageInfo imageInfo = getImageInfo(tag); if (imageInfo == null || imageInfo.height == 0 || imageInfo.width == 0) { return false; } final String widthValue = tag.getAttributeValue(HtmlReferenceProvider.SizeReference.WIDTH_ATTR_NAME); final String heightValue = tag.getAttributeValue(HtmlReferenceProvider.SizeReference.HEIGHT_ATTR_NAME); setText(widthValue != null || heightValue != null ? HtmlToolsBundle.message("html.intention.update.image.size") : HtmlToolsBundle.message("html.intention.insert.image.size")); return imageInfo.width != HtmlReferenceProvider.SizeReference.getSizeValue(widthValue, tag) || imageInfo.height != HtmlReferenceProvider.SizeReference.getSizeValue(heightValue, tag); }