public static @Nullable PsiElement findCommonParent(@Nullable PsiElement @NotNull ... elements) {
    return elements.length == 0 ? null : findCommonParent(Arrays.asList(elements));
  }
public static @Nullable PsiElement findCommonParent(@Nullable PsiElement @NotNull ... elements)