public static @Nullable ItemToReplaceDescriptor createIfInaccessible(@NotNull PsiMethod method, @NotNull PsiClass outerClass) {
    PsiType returnType = method.getReturnType();
    if (returnType != null &&
        !outerClass.equals(PsiTypesUtil.getPsiClass(returnType)) &&
        !PsiReflectionAccessUtil.isAccessibleType(returnType)) {
      return new MethodDeclarationDescriptor(method, returnType);
    }
    return null;
  }
public static @Nullable ItemToReplaceDescriptor createIfInaccessible(@NotNull PsiMethod method, @NotNull PsiClass outerClass)