@Nullable
  private static PsiType getTypeByRef(@NotNull GrReferenceExpression invoked) {
    PsiElement resolved = invoked.getStaticReference().resolve();
    return resolved instanceof PsiVariable ? ((PsiVariable)resolved).getType() : null;
  }
@Nullable
  private static PsiType getTypeByRef(@NotNull GrReferenceExpression invoked)