private static boolean findControllerClassInjection(@NotNull PsiReference loaderReference,
                                                      @NotNull Ref<? super PsiClass> injectedController,
                                                      PsiMethod injectControllerMethod) {
    final PsiElement element = loaderReference.getElement();
    if (element instanceof PsiReferenceExpression) {
      final PsiMethodCallExpression methodCallExpression = PsiTreeUtil.getParentOfType(element, PsiMethodCallExpression.class);
      if (methodCallExpression != null && methodCallExpression.resolveMethod() == injectControllerMethod) {
        final PsiExpression[] expressions = methodCallExpression.getArgumentList().getExpressions();
        if (expressions.length > 0) {
          final PsiClass psiClass = PsiUtil.resolveClassInType(expressions[0].getType());
          if (psiClass != null) {
            injectedController.set(psiClass);
            return false;
          }
        }
      }
    }
    return true;
  }
private static boolean findControllerClassInjection(@NotNull PsiReference loaderReference,
                                                      @NotNull Ref<? super PsiClass> injectedController,
                                                      PsiMethod injectControllerMethod)