HighlightDisplayLevel () { if (level == null) { return HighlightDisplayLevel.WARNING; } HighlightDisplayLevel displayLevel = HighlightDisplayLevel.find(level); if (displayLevel == null) { LOG.error(new PluginException("Can't find highlight display level: " + level + "; registered for: " + implementationClass + "; " + "and short name: " + shortName, getPluginDescriptor().getPluginId())); return HighlightDisplayLevel.WARNING; } return displayLevel; }