@Nullable
  public static String getQualifiedName(@NotNull PsiMethod method) {
    return Optional.ofNullable(method.getContainingClass())
      .map(c -> c.getQualifiedName())
      .orElse(null);
  }
@Nullable
  public static String getQualifiedName(@NotNull PsiMethod method)