@Override
		public int compareTo(CallGraphItem o) {
			// We want the tree display to have items in sorted order by
			//    package > class > method-name > method-args
			int cmp = 0;
			MethodMember method = getValue();
			MethodMember otherMethod = o.getValue();
			ClassInfo declaringClass = getDeclaringClass();
			ClassInfo otherDeclaringClass = o.getDeclaringClass();
			if (declaringClass != null)
				cmp = comparator.compare(declaringClass.getName(), otherDeclaringClass.getName());
			if (cmp == 0)
				cmp = comparator.compare(method.getName(), otherMethod.getName());
			if (cmp == 0)
				cmp = comparator.compare(method.getDescriptor(), otherMethod.getDescriptor());
			return cmp;
		}
Item of a class in the hierarchy.
recaf-ui/src/main/java/software/coley/recaf/ui/control/graph/MethodCallGraphPane.java