boolean (State state) { VirtualFile file = getFile(); if (file == null) return updateName(state.descriptor.getTitle()); Icon icon = state.descriptor.getIcon(file); String name = state.descriptor.getName(file); String comment = state.descriptor.getComment(file); if (name == null || comment == null) name = file.getPresentableName(); boolean updated = false; if (updateIcon(icon)) updated = true; if (updateName(name)) updated = true; if (updateComment(comment)) updated = true; if (updateValid(file.isValid())) updated = true; if (updateHidden(FileElement.isFileHidden(file))) updated = true; if (updateSpecial(file.is(VFileProperty.SPECIAL))) updated = true; if (updateSymlink(file.is(VFileProperty.SYMLINK))) updated = true; if (updateWritable(file.isWritable())) updated = true; return updated; }