void (Project project, CommonProblemDescriptor descriptor) { //noinspection unchecked QuickFix<ProblemDescriptor>[] fixes = descriptor.getFixes(); if (fixes != null) { for (final QuickFix<ProblemDescriptor> fix : fixes) { if (fix != null && (myQuickfixClass == null || fix.getClass().isAssignableFrom(myQuickfixClass))) { final ProblemDescriptor problemDescriptor = (ProblemDescriptor)descriptor; final PsiElement element = problemDescriptor.getPsiElement(); if (element != null && element.isValid()) { BatchExecutionResult result = collectFix(fix, problemDescriptor, project); myResultCount.merge(result, 1, Integer::sum); } break; } } } }