code: public boolean isPanelsComment(QueryQuestionComment comment, Panel panel) {
      Panel queryPanel = resourceController.getResourcePanel(comment.getQueryPage().getQuerySection().getQuery());
      if (queryPanel == null || panel == null) {
        return false;
      }
      
      return queryPanel.getId().equals(panel.getId());
    }
docs: Returns whether comment belongs to given panel
  
  @param comment comment
  @param panel panel
  @return whether comment belongs to given panel