void () { for (LanguageCodeStyleSettingsProvider provider : LanguageCodeStyleSettingsProvider.getAllProviders()) { // SQL is a special case, has its own tests if (isSql(provider.getLanguage())) { continue; } List<CodeSampleInfo> samplesToTest = getSamplesToTest(provider); for (CodeSampleInfo sampleInfo : samplesToTest) { PsiFile file = provider.createFileFromText(getProject(), sampleInfo.codeSample); if (file != null) { assertThat(file.isPhysical()) .describedAs(provider.getClass() + " must not create a physical file with psi events enabled") .isFalse(); } } } }