// highlight wicketId expression (but only if its not a page)
if (!WicketPsiUtil.isWicketPage(classToBeCreated)) {
PsiExpression wicketIdExpression = WicketPsiUtil.getWicketIdExpressionFromArguments(callExpression);
if (wicketIdExpression != null) {
// only PsiLiteralExpression are resolvable wicketIds
HighlightInfoType type;
if (hasReference(wicketIdExpression, ClassWicketIdReference.class)) {
type = WicketForgeColorSettingsPage.HIGHLIGHT_JAVAWICKETID;
} else {
type = WicketForgeColorSettingsPage.HIGHLIGHT_JAVAWICKETID_NOTRESOLVABLE;
}