FileStatus (Object value, FilePath path) { final FileStatus fileStatus; if (value instanceof Change) { fileStatus = ((Change) value).getFileStatus(); } else { final VirtualFile virtualFile = path.getVirtualFile(); if (virtualFile != null) { fileStatus = myFileStatusManager.getStatus(virtualFile); } else { fileStatus = FileStatus.NOT_CHANGED; } } return fileStatus; }