private static boolean isNonPhysicalOrInjected(@NotNull PsiFile psiFile) {
    return psiFile instanceof DummyHolder || psiFile.getViewProvider() instanceof FreeThreadedFileViewProvider || !psiFile.isPhysical();
  }
private static boolean isNonPhysicalOrInjected(@NotNull PsiFile psiFile)