Hi Mamad,
Please try:
getBlackBox() : int
Here are the possible values:
IBPPoolUIModel.BLACK_BOX_FOLLOW_MODEL_ELEMENT
IBPPoolUIModel.BLACK_BOX_NO
IBPPoolUIModel.BLACK_BOX_YES
More details:
https://www.visual-paradigm.com/support/documents/pluginjavadoc/com/vp/plugin/diagram/shape/IBPPoolUIModel.html#getBlackBox()
Hope this helps.
Best regards,
Jick Yeung