private void save() {
		if (path == null)
			return;

		WorkspaceComments workspaceComments = commentManager.getCurrentWorkspaceComments();
		if (workspaceComments == null)
			return;

		String comment = editor.getText();
		if (comment.isBlank())
			comment = null; // Will remove the comment
		if (path instanceof ClassMemberPathNode memberPath) {
			ClassPathNode classPath = memberPath.getParent();
			ClassComments classComments = workspaceComments.getOrCreateClassComments(classPath);
			ClassMember member = memberPath.getValue();
			if (member.isMethod()) {
				classComments.setMethodComment(member.getName(), member.getDescriptor(), comment);
			} else {
				classComments.setFieldComment(member.getName(), member.getDescriptor(), comment);
			}
			invalidateDecompile(classPath);
			FxThreadUtil.run(() -> Animations.animateSuccess(editor, 1000));
		} else if (path instanceof ClassPathNode classPath) {
			ClassComments classComments = workspaceComments.getOrCreateClassComments(classPath);
			classComments.setClassComment(comment);
			invalidateDecompile(classPath);
			FxThreadUtil.run(() -> Animations.animateSuccess(editor, 1000));
		}
	}
Called when {@link KeybindingConfig#getSave()} is pressed.
<br>
Updates the comment in the {@link ClassComments} associated with the {@link #path}.
recaf-ui/src/main/java/software/coley/recaf/ui/pane/CommentEditPane.java