void (@NotNull PsiFile file, @NotNull Function<? super InspectionProfile, ? extends InspectionProfileWrapper> customizer, @NotNull Runnable runnable) { file.putUserData(CUSTOMIZATION_KEY, customizer); try { runnable.run(); } finally { file.putUserData(CUSTOMIZATION_KEY, null); } }