PsiElement (@NotNull PsiElement atCaret, boolean dataFlowToThis) { PsiElement element = PsiTreeUtil.getParentOfType(atCaret, PsiExpression.class, PsiVariable.class, PsiMethod.class); if (dataFlowToThis && element instanceof PsiLiteralExpression) return null; return element; }