void (@NotNull EditorEx editor) { PsiFile file = PsiDocumentManager.getInstance(myProject).getPsiFile(editor.getDocument()); if (file != null) { InspectionProfileWrapper.setCustomInspectionProfileWrapperTemporarily(file, profile -> new InspectionProfileWrapper(CommitMessageInspectionProfile.getInstance(myProject))); } editor.putUserData(IntentionManager.SHOW_INTENTION_OPTIONS_KEY, false); EditorMarkupModel markupModel = (EditorMarkupModel)editor.getMarkupModel(); ModalityState modality = ModalityState.defaultModalityState(); TrafficLightRenderer.setTrafficLightOnEditor(myProject, markupModel, modality, () -> { return new ConditionalTrafficLightRenderer(myProject, editor.getDocument()); }); }