void (@NotNull HighlightInfoHolder holder, @NotNull PsiFile file) { myHolder = holder; myFile = file; myLanguageLevel = PsiUtil.getLanguageLevel(file); myJavaSdkVersion = ObjectUtils .notNull(JavaVersionService.getInstance().getJavaSdkVersion(file), JavaSdkVersion.fromLanguageLevel(myLanguageLevel)); myJavaModule = myLanguageLevel.isAtLeast(LanguageLevel.JDK_1_9) ? JavaModuleGraphUtil.findDescriptorByElement(file) : null; myPreviewFeatureVisitor = myLanguageLevel.isPreview() ? null : new HighlightingFeature.PreviewFeatureVisitor(myLanguageLevel, myErrorSink); }