void (int reparseDelayMs, @NotNull Runnable task) { DaemonCodeAnalyzerSettings settings = DaemonCodeAnalyzerSettings.getInstance(); int oldDelay = settings.getAutoReparseDelay(); settings.setAutoReparseDelay(reparseDelayMs); try { task.run(); } finally { settings.setAutoReparseDelay(oldDelay); } }