[python] make buildSubBlock and getChildIndent methods protected

It was asked for the Snakemake dialect

GitOrigin-RevId: 4af5fda0908669c5ad8fee523f018502592b45a8
This commit is contained in:
Andrey Vokin
2025-08-27 11:49:12 +00:00
committed by intellij-monorepo-bot
parent 3ac3579399
commit f8bcdc12c5
@@ -214,7 +214,7 @@ public class PyBlock implements ASTBlock {
}
}
private @NotNull PyBlock buildSubBlock(@NotNull ASTNode child) {
protected @NotNull PyBlock buildSubBlock(@NotNull ASTNode child) {
final IElementType parentType = myNode.getElementType();
final ASTNode grandParentNode = myNode.getTreeParent();
@@ -1196,7 +1196,7 @@ public class PyBlock implements ASTBlock {
return null;
}
private @NotNull Indent getChildIndent(int newChildIndex) {
protected @NotNull Indent getChildIndent(int newChildIndex) {
final IElementType parentType = myNode.getElementType();
final ASTNode afterNode = getAfterNode(newChildIndex);
final ASTNode lastChild = getLastNonSpaceChild(myNode, false);