@Nullable
  public static GrTypeDefinition getClassDefinition(@NotNull GroovyFile groovyFile) {
    String fileName = groovyFile.getName();
    int idx = fileName.lastIndexOf('.');
    if (idx < 0) return null;

    return getClassDefinition(groovyFile, fileName.substring(0, idx));
  }
@Nullable
  public static GrTypeDefinition getClassDefinition(@NotNull GroovyFile groovyFile)