@Override
    protected void applyFix(Project project, CommonProblemDescriptor descriptor) {
      if (descriptor instanceof ProblemDescriptor problemDescriptor &&
          problemDescriptor.getStartElement() == null &&
          problemDescriptor.getEndElement() == null) {
        if (LOG.isDebugEnabled()) {
          LOG.debug("Invalidated psi for " + descriptor);
        }
        return;
      }

      try {
        BatchExecutionResult result =
          QuickFixAction.this.applyFix(myProject, myContext, new CommonProblemDescriptor[]{descriptor}, myIgnoredElements);
        myResultCount.merge(result, 1, Integer::sum);
      }
      catch (ProcessCanceledException e) {
        throw e;
      }
      catch (Throwable e) {
        LOG.error(e);
      }
    }
@Override
    protected void applyFix(Project project, CommonProblemDescriptor descriptor)