private void createAccessFlagComments(Function function, MethodInfoJava methodInfo,
			ClassFileJava classFile) {

		int flags = methodInfo.getAccessFlags();

		StringBuffer sb = new StringBuffer();

		for (MethodsInfoAccessFlags f : MethodsInfoAccessFlags.values()) {
			if ((flags & f.getValue()) != 0) {
				sb.append("  " + f.name() + "\n");
			}
		}

		if (!StringUtils.isEmpty(sb)) {
			sb.insert(0, "Flags:\n");
		}

		sb.append("\n");
		sb.append(methodInfo.getMethodSignature(classFile));

		Listing listing = function.getProgram().getListing();
		Address entryPoint = function.getEntryPoint();

		listing.setComment(entryPoint, CommentType.PLATE, sb.toString());
	}
Sets the name, return type, and parameter types of a method using the information in the constant pool.
Also overrides the signatures on all method invocations made within the method body.
@param function - the function (method) 
@param methodInfo information about the method from the constant pool
@param classFile class file containing the method
@param dtManager data type manager for program 
@throws DuplicateNameException if there are duplicate name issues with function or parameter names
@throws InvalidInputException if a function or parameter name is invalid
Ghidra/Processors/JVM/src/main/java/ghidra/javaclass/analyzers/JavaAnalyzer.java