protected static boolean isUncommited(final @NotNull Project project) {
    return PsiDocumentManager.getInstance(project).hasUncommitedDocuments();
  }
protected static boolean isUncommited(final @NotNull Project project)