boolean (DefaultMutableTreeNode node, boolean canSmartExpand) { if (!canInitiateNewActivity()) return false; if (!getBuilder().isSmartExpand()) return false; boolean smartExpand = canSmartExpand && !myNotForSmartExpand.contains(node); Object element = getElementFor(node); return smartExpand && element != null && validateAutoExpand(true, element); }