@Contract("null, _ -> false")
    protected boolean checkExistsAndValid(@Nullable VirtualFile file, final String name) {
      if (file == null) {
        setErrorMessage(fileNotFoundMessage(name));
        return false;
      }
      return checkModificationValid(file, name);
    }
@Contract("null, _ -> false")
    protected boolean checkExistsAndValid(@Nullable VirtualFile file, final String name)