public boolean isGradleSdkHome(@Nullable Project project, @Nullable VirtualFile file) {
    if (file == null) {
      return false;
    }
    return isGradleSdkHome(project, new File(file.getPath()));
  }
public boolean isGradleSdkHome(@Nullable Project project, @Nullable VirtualFile file)