IndentStrategy (@Nullable PsiFile file) { if (file != null) { Language language = file.getLanguage(); IndentStrategy strategy = INSTANCE.forLanguage(language); if (strategy != null) { return strategy; } } return DEFAULT_INDENT_STRATEGY; }