void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { SimpleTextAttributes attributes = SimpleTextAttributes.REGULAR_ATTRIBUTES; final PackageDependenciesNode node; if (value instanceof PackageDependenciesNode){ node = (PackageDependenciesNode)value; if (myLeftTree && !mySettings.UI_FILTER_OUT_OF_CYCLE_PACKAGES) { final PsiElement element = node.getPsiElement(); if (element instanceof PsiPackage aPackage) { final Set<List<PsiPackage>> packageDependencies = myDependencies.get(aPackage); if (packageDependencies != null && !packageDependencies.isEmpty()) { attributes = SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES; } } } } else { node = (PackageDependenciesNode)((DefaultMutableTreeNode)value).getUserObject(); //cycle node children } append(node.toString(), attributes); setIcon(node.getIcon()); }