public static TreeNode add_ConstantsPool(this TreeNode treeNode, Java_Method method, Java_Class methodClass)
        {
            var constantsPoolNode = treeNode.add_Node("_ConstantsPool");

            foreach (var item in method.constantsPool_byType(methodClass))
            {
                constantsPoolNode.add_Node(item.Key, item.Value, true);
            }
            return(treeNode);
        }
        public static List <string> methodRefs_old(this Java_Class methodClass, Java_Method method)
        {
            var constants_byType = method.constantsPool_byType(methodClass);

            if (constants_byType.hasKey("Methodref"))
            {
                return(constants_byType["Methodref"].values());
            }
            return(new List <string>());
        }
        public static List <MethodCall> methodRefs(this Java_Method method, Java_Class methodClass)
        {
            var file             = methodClass.file();
            var constants_byType = method.constantsPool_byType(methodClass);

            if (constants_byType.hasKey("Methodref") || constants_byType.hasKey("InterfaceMethodref"))
            {
                var methodRefs_AtLines = method.getConstantsPoolUsage_byIndex_WithLineNumbers();
                var methodRefs         = new List <MethodCall>();

                if (constants_byType.hasKey("Methodref"))
                {
                    methodRefs.AddRange(constants_byType["Methodref"].get_MethodsRef_FromContantsPool(file, false, methodRefs_AtLines));
                }

                if (constants_byType.hasKey("InterfaceMethodref"))
                {
                    methodRefs.AddRange(constants_byType["InterfaceMethodref"].get_MethodsRef_FromContantsPool(file, true, methodRefs_AtLines));
                }
                return(methodRefs);
            }
            return(new List <MethodCall>());
        }
		public static List<string> methodRefs_old(this Java_Class methodClass, Java_Method method)
		{
			var constants_byType = method.constantsPool_byType(methodClass);
			if (constants_byType.hasKey("Methodref"))
				return constants_byType["Methodref"].values();
			return new List<string>();
		}
		public static TreeNode add_ConstantsPool(this TreeNode treeNode, Java_Method method, Java_Class methodClass)
		{
			var constantsPoolNode = treeNode.add_Node("_ConstantsPool");
			foreach(var item in method.constantsPool_byType(methodClass))
				constantsPoolNode.add_Node(item.Key, item.Value, true);
			return treeNode;
		}