String name= "kind";
if (!type.equals("field") && !type.equals("known-null") && !type.equals("type") && !type.equals("string"))
{
name= "type";
}
dexInstruction.setAttribute(name, constant.typeName());
if (constant instanceof CstMemberRef)
{
CstMemberRef memberRef= (CstMemberRef) constant;
String definingClassType= memberRef.getDefiningClass().getClassType().toHuman();