int row,
boolean hasFocus) {
final String text;
final ProblemInfo problem = getNodeProblem(pValue);
if (problem != null)
text = problem.getDescription();
else
text = pValue == null ? "" : pValue.toString();
final Component c = super.getTreeCellRendererComponent(tree,
text,
sel,
expanded,
leaf,
row,
hasFocus);
if (c instanceof JLabel && problem != null) {
final JLabel label = (JLabel) c;
final AnAction[] fixActions = problem.getFixActions();
if (!problem.isValid())
label.setIcon(Icons.PROBLEM_FIXED);
else if (fixActions != null && fixActions.length > 0)
label.setIcon(Icons.PROBLEM);
else
label.setIcon(Icons.WARNING);