public static @Nullable PsiFile getFormFile(PsiField field) {
    PsiReference ref = getFormReference(field);
    if (ref != null) {
      return ref.getElement().getContainingFile();
    }
    return null;
  }
public static @Nullable PsiFile getFormFile(PsiField field)