@Override
	public boolean isAddToPopup(DomainFileContext context) {

		if (!context.isInActiveProject()) {
			return false;
		}

		checkRepository();
		List<DomainFile> domainFiles = context.getSelectedFiles();
		for (DomainFile domainFile : domainFiles) {
			if (domainFile.getVersion() > 0) {
				return true; // Has at least one domain file that can be or is version controlled.
			}
		}
		return false;
	}
Returns true if there is at least one of the provided domain files can be 
or is version controlled.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/projectdata/actions/VersionControlAction.java