public static boolean canChangeFileSilently(@NotNull PsiFileSystemItem file, boolean isInContent,
                                              @NotNull ThreeState extensionsAllowToChangeFileSilently) {
    ThreadingAssertions.assertEventDispatchThread();
    Project project = file.getProject();
    DaemonCodeAnalyzerEx daemonCodeAnalyzer = DaemonCodeAnalyzerEx.getInstanceEx(project);
    if (daemonCodeAnalyzer == null) {
      return true;
    }

    if (daemonCodeAnalyzer.cutOperationJustHappened()) {
      return false;
    }
    return CanISilentlyChange.thisFile(file).canIReally(isInContent, extensionsAllowToChangeFileSilently);
  }
public static boolean canChangeFileSilently(@NotNull PsiFileSystemItem file, boolean isInContent,
                                              @NotNull ThreeState extensionsAllowToChangeFileSilently)