CodeStyleSettings () { CodeStyleSettings localSettings = getLocalSettings(); if (localSettings != null) return localSettings; CodeStyleSettings temporarySettings = myTemporarySettings; if (temporarySettings != null) return temporarySettings; CodeStyleSettings projectSettings = getMainProjectCodeStyle(); if (USE_PER_PROJECT_SETTINGS && projectSettings != null) return projectSettings; return CodeStyleSchemes.getInstance().findPreferredScheme(PREFERRED_PROJECT_CODE_STYLE).getCodeStyleSettings(); }