private static boolean isFileSharedInVcs(@NotNull Project project,
                                           @NotNull ChangeListManager changeListManager,
                                           @NotNull String filePath) {
    VirtualFile file = LocalFileSystem.getInstance().findFileByPath(filePath);
    if (file == null) return false;
    FileStatus fileStatus = changeListManager.getStatus(file);
    return isFileUnderVcs(project, filePath) &&
           (fileStatus != UNKNOWN && fileStatus != IGNORED);
  }
private static boolean isFileSharedInVcs(@NotNull Project project,
                                           @NotNull ChangeListManager changeListManager,
                                           @NotNull String filePath)