void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { final Object object = getObject(value); if (object instanceof PsiFile file) { final Object userObject = ((DefaultMutableTreeNode)value).getUserObject(); if (myManager.getAssociationsFor(file).length > 0) { //noinspection unchecked myTemp.setUserObject(new MyNodeDescriptor((NodeDescriptor<PsiFileNode>)userObject)); super.customizeCellRenderer(tree, myTemp, selected, expanded, leaf, row, hasFocus); return; } } super.customizeCellRenderer(tree, value, selected, expanded, leaf, row, hasFocus); }