@Nullable
    private static ValidationResult getValidationResult(@NotNull final PsiElement element) {
      final CommandLineFile file = getFile(element);
      if (file == null) {
        return null;
      }
      return file.getValidationResult();
    }
@Nullable
    private static ValidationResult getValidationResult(@NotNull final PsiElement element)