InspectionsLevel (@NotNull FileHighlightingSetting highlightingSetting) { return switch (highlightingSetting) { case NONE, SKIP_HIGHLIGHTING -> InspectionsLevel.NONE; case SKIP_INSPECTION -> InspectionsLevel.SYNTAX; case ESSENTIAL -> InspectionsLevel.ESSENTIAL; case FORCE_HIGHLIGHTING -> InspectionsLevel.ALL; }; }