public void processUncheckedNodes( @NotNull final Consumer<DetectedFrameworkTreeNodeBase> consumer) { TreeUtil.traverse( getRoot(), node -> { if (node instanceof DetectedFrameworkTreeNodeBase) { final DetectedFrameworkTreeNodeBase frameworkNode = (DetectedFrameworkTreeNodeBase) node; if (!frameworkNode.isChecked()) { consumer.consume(frameworkNode); } } return true; }); }
@Override public void customizeRenderer( JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (value instanceof DetectedFrameworkTreeNodeBase) { ((DetectedFrameworkTreeNodeBase) value).renderNode(getTextRenderer()); } }