void (@NotNull CodeStyleSettingsChangeEvent event) { if (myProject != null) { VirtualFile eventFile = event.getVirtualFile(); if (eventFile != null && !eventFile.equals(getVirtualFile())) { return; } int oldTabSize = EditorUtil.getTabSize(this); mySettings.reinitSettings(); int newTabSize = EditorUtil.getTabSize(this); if (oldTabSize != newTabSize) { reinitSettings(false, true); } else { // cover the case of right margin update myEditorComponent.repaint(); } } }