void (boolean flag) { final String emptyText = flag ? LangBundle.message("status.text.no.illegal.dependencies.found") : LangBundle.message("status.text.nothing.to.show"); myLeftTree.getEmptyText().setText(emptyText); myRightTree.getEmptyText().setText(emptyText); }