private boolean isAllowedToMoveSemicolonInLongCallChain() {
    if (!myJavaSettings.WRAP_SEMICOLON_AFTER_CALL_CHAIN) return false;

    if (Registry.is(LegacyChainedMethodCallsBlockBuilder.COMPATIBILITY_KEY)) return false;

    if(!(myChild1 instanceof PsiMethodCallExpression) || myType1 != JavaElementType.METHOD_CALL_EXPRESSION) return false;

    if (isInsidePsiForStatement()) return false;

    List<ASTNode> nodes = new ArrayList<>();
    JavaFormatterUtil.collectCallExpressionNodes(nodes, myChild1);

    return ChainMethodCallsBlockBuilder.isLongCallChain(nodes, mySettings);
  }
private boolean isAllowedToMoveSemicolonInLongCallChain()