SimpleTextAttributes (@NotNull FileStatus status) { Color color = status.getColor(); if (color == null) color = UIUtil.getListForeground(); if (!myFileStatusToAttributeMap.containsKey(status)) { myFileStatusToAttributeMap.put(status, new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, color)); } return myFileStatusToAttributeMap.get(status); }