protected Pair<String, SourceType> validateNameAndSource(String newName, SourceType newSource)
			throws InvalidInputException {
		if ((newSource == SourceType.DEFAULT) ^ (getSource() == SourceType.DEFAULT)) {
			throw new IllegalArgumentException("Cannot create or remove DEFAULT symbols");
		}
		DBTraceSymbolManager.assertValidName(newName);
		return new ImmutablePair<>(newName, newSource);
	}
Sets the flags for the given source.

The caller must still call {@link #update(DBObjectColumn...)} for {@link #FLAGS_COLUMN}. The
update should be called before the returned event, if applicable, is fired.

@param newSource the source type
@return the appropriate change event, if a change was actually made
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/symbol/AbstractDBTraceSymbol.java