boolean (UCallExpression expression) { PsiMethod resolvedMethod = expression.resolve(); if (resolvedMethod == null) return false; if (!resolvedMethod.getName().equals(getFactoryMethodName())) return false; PsiClass containingClass = resolvedMethod.getContainingClass(); if (containingClass == null) return false; return getFactoryMethodContainingClassName().equals(containingClass.getQualifiedName()); }