private static Icon getIconForValue ( BencodeTreeModel model, BencodeTreeNode node ) {
		if ( node.getParent() == null ) {
			return ICON_ROOT;
		}
		
		Value<?> value = node.getValue();
		
		if ( value instanceof IntegerValue ) {
			return ICON_INTEGER;
			
		} else if ( value instanceof StringValue ) {
			if ( ( (StringValue) value ).isValidUtf8() ) {
				return ICON_STRING;
			} else {
				return ICON_BINARY;
			}
			
		} else if ( value instanceof ListValue ) {
			return ICON_LIST;
			
		} else if ( value instanceof DictionaryValue ) {
			return ICON_DICTIONARY;
		}
		
		return null;
	}