boolean (@NotNull CommonProblemDescriptor descriptor) { boolean runInReadAction = false; QuickFix<?>[] fixes = descriptor.getFixes(); if (fixes != null) { for (QuickFix<?> fix : fixes) { if (!fix.startInWriteAction()) { runInReadAction = true; } else { runInReadAction = false; break; } } } return runInReadAction; }