Point (final @NotNull String extensionName) { final IconHolder iconHolder = icons.get(extensionName); if (iconHolder == null) { throw new IllegalArgumentException("The " + extensionName + " extension does not exist in this text field"); } return iconHolder.bounds.getLocation(); }