public boolean hasHookFor(@NotNull VirtualFile file) {
    Path path = LightEditUtil.getPreferredSavePathForNonExistentFile(file);
    if (path != null && myFileOrProjectToCallback.containsKey(path)) {
      return true;
    }
    return myFileOrProjectToCallback.containsKey(file);
  }
public boolean hasHookFor(@NotNull VirtualFile file)