CodeStyleSettings (@NotNull Project project, @NotNull VirtualFile file) { @SuppressWarnings("TestOnlyProblems") CodeStyleSettings tempSettings = CodeStyleSettingsManager.getInstance(project).getTemporarySettings(); if (tempSettings != null) { return tempSettings; } CodeStyleSettings cachedSettings = CodeStyleCachingService.getInstance(project).tryGetSettings(file); return cachedSettings != null ? cachedSettings : getSettings(project); }