@Override
  public boolean isInScratchFile(@NotNull PsiElement element) {
    return ScratchUtil.isScratch(PsiUtilCore.getVirtualFile(element));
  }
@Override
  public boolean isInScratchFile(@NotNull PsiElement element)