private static boolean isInnerClassAccess(PsiExpression reference, PsiClass targetClass) {
      final PsiClass sourceClass = PsiUtil.getContainingClass(reference);
      return sourceClass != null &&
             targetClass != null &&
             sourceClass != targetClass &&
             PsiUtil.getTopLevelClass(sourceClass) == PsiUtil.getTopLevelClass(targetClass);
    }
private static boolean isInnerClassAccess(PsiExpression reference, PsiClass targetClass)