public static boolean isFromGroovyGradleScript(@Nullable Location location) {
    if (location == null) return false;
    return isFromGroovyGradleScript(location.getPsiElement());
  }
public static boolean isFromGroovyGradleScript(@Nullable Location location)