void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (value instanceof ProfileNode) { append(((ProfileNode)value).myProfile.getName()); } else if (value instanceof MyModuleNode) { final Module module = ((MyModuleNode)value).getModule(); setIcon(AllIcons.Nodes.Module); append(module.getName()); } }