static boolean isPropertiesFile(XmlFile file) {
    Project project = file.getProject();
    if (!file.isValid()) return false;
    VirtualFile virtualFile = file.getVirtualFile();
    if (virtualFile == null || DumbService.isDumb(project) || NoAccessDuringPsiEvents.isInsideEventProcessing()) {
      CharSequence contents = file.getViewProvider().getContents();
      return CharArrayUtil.indexOf(contents, HTTP_JAVA_SUN_COM_DTD_PROPERTIES_DTD, 0) != -1 &&
          isAccepted(contents);
    }
    return !FileBasedIndex.getInstance().getFileData(NAME, virtualFile, project).isEmpty();
  }
static boolean isPropertiesFile(XmlFile file)