# Getting RadTestPsiElement out of CppFileImpl?

**URL:** <https://platform.jetbrains.com/t/getting-radtestpsielement-out-of-cppfileimpl/3095>\
**Category:** ReSharper Platform\
**Created:** [November 10, 2025, 3:17pm UTC](https://platform.jetbrains.com/t/getting-radtestpsielement-out-of-cppfileimpl/3095 "2025-11-10T15:17:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SergejSalnikov](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/sergejsalnikov/32/2118_2.png) [@SergejSalnikov](https://platform.jetbrains.com/u/SergejSalnikov)\
**Post date:** [November 10, 2025, 3:17pm UTC](https://platform.jetbrains.com/t/getting-radtestpsielement-out-of-cppfileimpl/3095/1 "2025-11-10T15:17:58Z")

</div>

Hi. I’m trying to figure out if CPP file contain any tests (or specific tests). Is it possible to get an instance of RadTestPsiElement from CppFileImpl?

In particular, I’m interested in knowing whether the source file contains any Gtests.

- Sergey
