Get column name from ColumnLayoutItem

Hello community,
I have a ColumnLayoutItem and I don’t know how to obtain the column name.
I am trying to get all columns from board, what I have so far looks like this:

 List<ColumnLayoutItem> columns = Collections.emptyList();
 try
 {
    ColumnLayout columnLayout = ComponentAccessor.getColumnLayoutManager().getColumnLayout(user);
    columns = columnLayout.getAllVisibleColumnLayoutItems(user);
 }

I am not sure if this is the best way to do it, but I don’t know how to start, I would really appreciate if someone can help me to find the answer.
To be more explicit I would like to write a function like that:
List getAllColumnsFromProject(ApplicationUser user, Long projectId){
//returns list of columns
}

Thank you very much! :slight_smile: