private boolean applyFixes(@NotNull CleanupProblems problems) {
    if (LOG.isDebugEnabled()) {
      LOG.debug("Applying fixes");
    }

    if (!FileModificationService.getInstance().preparePsiElementsForWrite(problems.files())) return false;
    CleanupInspectionUtil.getInstance().applyFixesNoSort(
      getProject(), LangBundle.message("code.cleanup"), problems.problemDescriptors(), null, false, problems.isGlobalScope());
    return true;
  }
private boolean applyFixes(@NotNull CleanupProblems problems)