PyNumericLiteralExpression (@NotNull String text) { final PsiElement element = myFixture.configureByText(PythonFileType.INSTANCE, text).findElementAt(0); assertNotNull(element); final PyNumericLiteralExpression numericLiteralExpression = PyUtil.as(element.getParent(), PyNumericLiteralExpression.class); assertNotNull(numericLiteralExpression); return numericLiteralExpression; }