@Override
	protected SourceType validateNameSource(String newName, SourceType source) {
		if (!isExternal()) {
			if (source == SourceType.DEFAULT) {
				return SourceType.ANALYSIS;
			}
			return source;
		}
		if (newName == null || newName.length() == 0 || SymbolUtilities
				.isReservedDynamicLabelName(newName, symbolMgr.getProgram().getAddressFactory())) {
			return SourceType.DEFAULT;
		}
		return source;
	}
Delete code/label symbol
@param keepReferences if false all references to this symbols address will be removed,
otherwise associated references will simply be disassociated following symbol removal
(see {@link SymbolManager#doRemoveSymbol(SymbolDB)}.
@return true if symbol successfully removed
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/symbol/CodeSymbol.java