WhiteSpaceFormattingStrategy (@NotNull Language language) { WhiteSpaceFormattingStrategy strategy = LanguageWhiteSpaceFormattingStrategy.INSTANCE.forLanguage(language); if (strategy != null) { if (strategy.replaceDefaultStrategy()) { return strategy; } else { return new CompositeWhiteSpaceFormattingStrategy(List.of(DEFAULT_STRATEGY, strategy)); } } else { return getStrategy(); } }