void () { StatusText emptyText = myTree.getEmptyText(); emptyText.appendLine(AntBundle.message("ant.empty.text.1")); emptyText.appendLine(AntBundle.message("ant.empty.text.2"), SimpleTextAttributes.LINK_PLAIN_ATTRIBUTES, e -> addBuildFile()); emptyText.appendLine(""); emptyText.appendLine( AllIcons.General.ContextHelp, AntBundle.message("ant.empty.text.help"), SimpleTextAttributes.LINK_PLAIN_ATTRIBUTES, e -> HelpManager.getInstance().invokeHelp("procedures.building.ant.add")); }