void (@NotNull CodeStyleSettingsChangeEvent event) { CodeStyleSettings settings = CodeStyle.getSettings(myProject); if (settings.getCustomSettingsIfCreated(EditorConfigSettings.class) == null) { // plugin is currently being unloaded, can't run any updates return; } boolean newEnabledStatus = Utils.INSTANCE.isEnabled(myProject); if (myEnabledStatus != newEnabledStatus) { myEnabledStatus = newEnabledStatus; onEditorConfigEnabled(newEnabledStatus); } Set<String> newEncodings = extractEncodings(); if (!myEncodings.equals(newEncodings)) { if (containsValidEncodings(newEncodings)) { onEncodingChanged(); } myEncodings = newEncodings; } }