private static @NotNull String getNameToSearch(@NotNull PsiClass checkedClass, String qualifiedName) {
    PsiClass parentClass = ObjectUtils.tryCast(checkedClass.getParent(), PsiClass.class);
    if (parentClass == null) {
      return qualifiedName;
    }
    else {
      // package.parent$inner string cannot be found, so, search by parent FQN
      String parentQualifiedName = parentClass.getQualifiedName();
      return parentQualifiedName != null ? parentQualifiedName : qualifiedName;
    }
  }
private static @NotNull String getNameToSearch(@NotNull PsiClass checkedClass, String qualifiedName)