@Nullable
  public static PropertiesFile getPropertiesFile(@Nullable PsiElement element) {
    if (!(element instanceof PsiFile)) return null;
    return getPropertiesFile((PsiFile)element);
  }
@Nullable
  public static PropertiesFile getPropertiesFile(@Nullable PsiElement element)