HandleType (final VirtualFile file) { if (! myProject.isInitialized()) return null; AbstractVcs vcs = ProjectLevelVcsManager.getInstance(myProject).getVcsFor(file); if (vcs != null) { boolean fileExistsInVcs = vcs.fileExistsInVcs(VcsUtil.getFilePath(file)); if (fileExistsInVcs && vcs.getEditFileProvider() != null) { return new VcsHandleType(vcs); } } return null; }