public @Nullable InitialInfoType collectInformation(@NotNull PsiFile file, @NotNull Editor editor, boolean hasErrors) {
    return hasErrors ? null : collectInformation(file);
  }
public @Nullable InitialInfoType collectInformation(@NotNull PsiFile file, @NotNull Editor editor, boolean hasErrors)