CommonCodeStyleSettings (@Nullable Language lang) { CommonCodeStyleSettings settings = myCommonSettingsManager.getCommonSettings(lang); if (settings == null) { settings = myCommonSettingsManager.getDefaults(); //if (lang != null) { // LOG.warn("Common code style settings for language '" + lang.getDisplayName() + "' not found, using defaults."); //} } return settings; }