public static boolean isUnderControl(@NotNull Project project, @NotNull VirtualFile file) {
    return !isIgnoredInAnySense(project, file) && !ChangeListManager.getInstance(project).isUnversioned(file);
  }
public static boolean isUnderControl(@NotNull Project project, @NotNull VirtualFile file)