boolean (Object element, PsiElement context) { final PsiExpression psiExpression = getParentElement((PsiLiteralExpression)context); if (psiExpression != null) { final PsiType psiType = psiExpression.getType(); return psiType != null && psiType.equalsToText(JavaFxCommonNames.JAVA_FX_PARENT); } return false; }