ItemLatestState (FilePath filePath) { if (filePath.isDirectory()) { return null; } final VirtualFile vf = filePath.getVirtualFile(); if (vf != null) { if (!hasGoodFileStatus(vf)) { return null; } } try { return GitHistoryUtils.getLastRevision(myProject, filePath); } catch (VcsException e) { return null; } }