Collection<CodeStyleSettings> () { List<CodeStyleSettings> appSettings = new ArrayList<>(); appSettings.add(CodeStyleSettings.getDefaults()); CodeStyleSettings settings = getMainProjectCodeStyle(); if (settings != null) { appSettings.add(settings); } return appSettings; }